Commit graph

21 commits

Author SHA1 Message Date
Futago-za Ryuu 94ca36469b Move compiler/vm.js to util/vm.js 2018-04-04 20:21:31 +01:00
Futago-za Ryuu 01555ebbac Move compiler/js.js to util/js.js 2018-04-03 03:16:10 +01:00
Futago-za Ryuu 8d3dc109ed Rename js.regexpClassEscape to js.regexpEscape 2018-04-02 21:17:35 +01:00
Futago-za Ryuu 878421ab75 Moved seperate utilities into util route. 2018-04-02 20:59:13 +01:00
Futago-za Ryuu 1fca2daff6 Move processOptions to utils 2018-03-28 23:56:23 +01: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 f4ca7ca461 Remove grammar option for Session API 2018-03-20 23:40:47 +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 8e9be9afea Use CommentMap 2018-01-30 01:02:39 +00:00
Futago-za Ryuu fe6f09238a Relay parser opts from peg.generate (#553) 2018-01-28 23:42:16 +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 617b6b7425 Updated utils and tsd
- Exposed 'visitor.ASTVisitor'
- Remoed 'util.createVisitor'
- Added type 'peg.SourceLocation'
- Updated tsd for 'peg.compiler.visitor'
- Added tsd for 'peg.util.enforceFastProperties'
- Added tsd for new parser modules
2018-01-16 04:28:27 +00:00
Futago-za Ryuu 7cdfc03e9f Added utility methods for objects
Before there used to be some internal utility methods for arrays and objects, but as the code base moved to ES5+ use  case only, these were removed in favour of native alternatives, but most of these were only beneficial for arrays.

This commit add's common utility methods for objects, and also exposes these as they can be used by plugin developer's on the PEG.js AST.
2018-01-14 20:44:53 +00:00
Futago-za Ryuu 93f9068c99 Updated tsd for compiler passes [ci skip] 2018-01-07 01:08:35 +00:00
Mingun 534dc53ac2 Optimize redundant fail checks (#400)
eliminate unnecessary checks for the result of parse, when it can be statically determined
2018-01-05 21:28:09 +00:00
Futago-za Ryuu 06f1565a32 tsd: Added NotExpectation interface 2018-01-02 01:50:38 +00:00
Mingun 42ec335d13 Optimize silent fails: remove checks that always false (#399)
* Optimization: do not generate unreachable calls |peg$fail| and constants for it (local to the rule).
* Optimization: do not generate unreachable calls |peg$fail| and constants for it (non-local to rule).
2018-01-01 19:35:59 +00:00
Futago-za Ryuu d3cbbee592 Added .d.ts declaration files (#519) 2017-12-27 23:04:05 +00:00