Commit graph

1402 commits

Author SHA1 Message Date
Futago-za Ryuu af917b1e4d Refactor removeProxyRules 2018-03-29 03:55:50 +01:00
Futago-za Ryuu dbdba75b15 run plugins optionally 2018-03-29 01:20:57 +01:00
Futago-za Ryuu 7e10622b9a Update lockfile 2018-03-29 01:07:48 +01:00
Futago-za Ryuu 1fca2daff6 Move processOptions to utils 2018-03-28 23:56:23 +01:00
Futago-za Ryuu b5d01f7505 Test only the latest versions of LTS releases 2018-03-23 12:33:06 +00:00
Futago-za Ryuu c2c823196f Re-generate parser 2018-03-23 04:12:19 +00:00
Futago-za Ryuu 699038c507 Link to doc for plugins 2018-03-23 03:20:14 +00:00
Futago-za Ryuu ab9b8d41bb Add doc for tracer.trace 2018-03-23 03:18:02 +00:00
Futago-za Ryuu 87ad103177 Move nyc options to separate config 2018-03-23 02:38:00 +00:00
Futago-za Ryuu 94a5f24817 Use only Yarn 2018-03-23 02:22:11 +00:00
Futago-za Ryuu b3329e626e Integrate yarn 2018-03-23 02:19:08 +00:00
Futago-za Ryuu 6335818cb7 Gulp 4 2018-03-23 02:00:03 +00:00
Futago-za Ryuu 3745195315 Make the default tracer an optional feature 2018-03-22 00:41:44 +00:00
Futago-za Ryuu 72ba85b3af Use 'visitor.on' instead of 'visitor.for' 2018-03-22 00:07:53 +00:00
Futago-za Ryuu 7cd291cbe0 Add doc for plugins (closes #544) 2018-03-21 02:13:47 +00:00
Futago-za Ryuu 70dea07923 Update twitter link 2018-03-21 01:04:44 +00:00
Futago-za Ryuu 46c3dcf40b Document Session#fatal method 2018-03-20 23:45:14 +00:00
Futago-za Ryuu f4ca7ca461 Remove grammar option for Session API 2018-03-20 23:40:47 +00:00
Futago-za Ryuu 6d25da2d2b Use bare option with browserify 2018-03-20 03:21:58 +00:00
Futago-za Ryuu 126a4c95f4 Update devDependencies
Closes #568
2018-03-20 03:19:30 +00:00
Futago-za Ryuu 2f0680ca16 Restore orignal output on generation fail
If the output file already exists, and the parser generator fails, the result is a empty file. This commit tries  to avoid this pitfall.
2018-03-17 04:27:09 +00:00
Futago-za Ryuu 21a6de06d5 Optional features
This commit enables optional features that are enabled by default in the generated parser.

For now, only some of the helpers and filename are generated based on this new option, but this will change in the future most likely.

Resolves #421
2018-03-17 04:08:05 +00:00
Futago-za Ryuu 15d364587c Update tsd to include changes since 8e9be9a 2018-03-12 19:57:43 +00:00
Futago-za Ryuu 2ac387e1c9 Move documentation
The README.md file in the root of the repository had become too large, and as a result the file became hard to maintain.

This commit extracts all the documentation and moves it to separate but managable files within the docs directory, a new folder also located in the root of the repository.
2018-02-16 02:39:13 +00:00
Futago-za Ryuu 418f441d88 Ignore '.idea' directory 2018-02-09 13:33:36 +00:00
Futago-za Ryuu fedf0f3480 Resolve 'vm.runInContext' bottleneck
Calling 'vm.runInContext'  is slightly more expensive then calling `eval`, but removing the string template and extracting the variable generator helps abit.
2018-02-04 00:12:30 +00:00
Futago-za Ryuu 43a305eaef Clarify templates
- what to chose and do
- remove checkboxs
- all question in comments
- reformat style
2018-02-03 16:46:16 +00:00
Futago-za Ryuu b3135690b0 Not session.fail but session.fatal 2018-02-02 07:13:58 +00:00
Futago-za Ryuu 30cfa29553 Provide context to parser (#517) 2018-02-02 06:42:03 +00:00
Futago-za Ryuu 04dfef3b63 Use error emitter (Closes #430) 2018-02-02 04:32:39 +00:00
Futago-za Ryuu ef0595596f Implement error emitter (Closes #431)
Along with commit 851d8ed, this resolves #431 based on the fact that plugins can overwrite session methods, allowing use cases like multiple or limited errors (and/or warnings) to be an opt-in feature.
2018-02-02 04:32:26 +00:00
Futago-za Ryuu a11d217167 Updated devDependencies 2018-02-01 21:51:17 +00:00
Futago-za Ryuu 621b11b715 Disable no-unused-vars in Session API 2018-01-31 02:23:24 +00:00
Futago-za Ryuu 6500189d58 Report unused rules (Closes #200) 2018-01-31 02:17:27 +00:00
Futago-za Ryuu 851d8edfdd Implement warning emitter (Closes #327) 2018-01-31 02:04:19 +00:00
Futago-za Ryuu f4c67993f6 Added the Session API 2018-01-30 02:38:49 +00:00
Futago-za Ryuu 8e9be9afea Use CommentMap 2018-01-30 01:02:39 +00:00
Futago-za Ryuu 11bc94f4c3 Updated docs for JavaScript API [ci skip]
This includes detials about the 3 main methods a developer will use along with their respective options.

Closes #553
2018-01-29 02:08:12 +00:00
Futago-za Ryuu a5d7cc11a4 ECMA, not ESMA 2018-01-29 02:02:17 +00:00
Futago-za Ryuu fe6f09238a Relay parser opts from peg.generate (#553) 2018-01-28 23:42:16 +00:00
Futago-za Ryuu 8d711627c1 Remove usless refrences to peg 2018-01-28 02:18:02 +00:00
Futago-za Ryuu 269b36b9db Remove redundant glob for linting 2018-01-28 02:16:37 +00:00
Futago-za Ryuu a79757683f Should be 'test/impact master' 2018-01-28 02:08:20 +00:00
Futago-za Ryuu 5476eca59f Moved AST and visitor classes 2018-01-28 02:00:28 +00:00
Futago-za Ryuu f41ef82ce9 Update tsd to include latest changes
These changes are mainly from from @Minigun and @futagoza
2018-01-26 10:32:55 +00:00
Futago-za Ryuu 4b6ceb2b46 Fix plugin test that replaces parser
This test broke down aftert I intergrated the AST utils directly into the Grammar class, then I had problems importing the PEG.js parser to use the Grammar class, but found a workaround using 'process.cwd()'
2018-01-26 09:33:13 +00:00
Futago-za Ryuu b0a5db1ab9 Expose ast classes used by parser 2018-01-26 08:24:51 +00:00
Futago-za Ryuu 9ecb21b749 stripLocation > stripProperties 2018-01-26 08:17:53 +00:00
Futago-za Ryuu 9d266625b4 Merge ast utils into Grammar class 2018-01-26 07:49:34 +00:00
Mingun 1a713d0175 Add some useful debug information to some exceptions (#475)
* Add some useful debug information to some exceptions

* Add guard for visitor functions preventing from cryptic errors due to incomplete visitors

* Add guard for js generator for preventing from cryptic errors due to incarrect stack manipulations
2018-01-24 18:12:13 +00:00