pegjs/lib/compiler/passes
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
..
calc-report-failures.js Optimize silent fails: remove checks that always false (#399) 2018-01-01 19:35:59 +00:00
generate-bytecode.js Move all codegeneration from generateBytecode pass to generateJs pass (#459) 2018-01-17 16:57:49 +00:00
generate-js.js Move all codegeneration from generateBytecode pass to generateJs pass (#459) 2018-01-17 16:57:49 +00:00
inference-match-result.js Optimize redundant fail checks (#400) 2018-01-05 21:28:09 +00:00
remove-proxy-rules.js Update code format and style 2017-10-25 19:19:42 +01:00
report-duplicate-labels.js Added utility methods for objects 2018-01-14 20:44:53 +00:00
report-duplicate-rules.js Added utility methods for objects 2018-01-14 20:44:53 +00:00
report-infinite-recursion.js Update code format and style 2017-10-25 19:19:42 +01:00
report-infinite-repetition.js Update code format and style 2017-10-25 19:19:42 +01:00
report-undefined-rules.js Auto-add allowedStartRules to test options for changeAST and reportError methods if it not defined 2017-12-19 01:38:26 +05:00