Futago-za Ryuu
b8db835af9
Refactor vm.runInContext
2018-04-05 08:16:50 +01:00
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
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
75a4101622
Some cosmetic changes
...
- Remove unused '__slice' variable
- Nicely indent a map/concat chain
- 'forEach' instead of 'map' in emitted code
2018-01-18 01:47:13 +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
27ec5ed9b1
Ensure we are nearly always in fast mode on V8
...
See: https://stackoverflow.com/a/24989927/1518408
2018-01-16 02:57:12 +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