pegjs/lib
Mingun 9b90fa1d81 Move all codegeneration from generateBytecode pass to generateJs pass (#459)
* Split 'consts' collection by content types into:

  - literals: for literal expressions, like `"a"`
  - classes: for character class expressions, like `[a]`
  - expectations: for constants describing expected values when parse failed
  - functions: for constants with function code

* Move any JavaScript code generation from 'generateBytecode' to 'generateJs'.
* Rename opcode 'MATCH_REGEXP' to 'MATCH_CLASS' (name reflects purpose, not implementation).
* Replace 'PUSH' opcode with 'PUSH_EMPTY_STRING' opcode because it is only used with empty strings
2018-01-17 16:57:49 +00:00
..
compiler Move all codegeneration from generateBytecode pass to generateJs pass (#459) 2018-01-17 16:57:49 +00:00
parser Move all codegeneration from generateBytecode pass to generateJs pass (#459) 2018-01-17 16:57:49 +00:00
typings Updated utils and tsd 2018-01-16 04:28:27 +00:00
util Updated utils and tsd 2018-01-16 04:28:27 +00:00
.eslintrc.js Disabled eslint rule 'prefer-spread' 2017-10-26 10:20:29 +01:00
grammar-error.js Update code format and style 2017-10-25 19:19:42 +01:00
peg.d.ts Added 'lib/peg.d.ts' for internal use 2017-12-28 01:23:37 +00:00
peg.js Added utility methods for objects 2018-01-14 20:44:53 +00:00