You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
6 years ago
..
compiler Move all codegeneration from `generateBytecode` pass to `generateJs` pass (#459) 6 years ago
parser Move all codegeneration from `generateBytecode` pass to `generateJs` pass (#459) 6 years ago
typings Updated utils and tsd 6 years ago
util Updated utils and tsd 6 years ago
.eslintrc.js Disabled eslint rule 'prefer-spread' 7 years ago
grammar-error.js Update code format and style 7 years ago
peg.d.ts Added 'lib/peg.d.ts' for internal use 6 years ago
peg.js Added utility methods for objects 6 years ago