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.
39084496ca
The action/predicate code didn't have access to the parser object. This was mostly a side effect actions/predicates being implemented as nested functions, in which |this| is a reference to the global object (an ugly JavaScript quirk). The initializer, being implemented differently, had access to the parser object via |this|, but this was not documented. Because having access to the parser object can be useful, this commits introduces a new |parser| variable which holds a reference to it, is visible in action/predicate/initializer code, and is properly documented. See also: https://groups.google.com/forum/#!topic/pegjs/Na7YWnz6Bmg |
11 years ago | |
---|---|---|
.. | ||
compiler | 11 years ago | |
compiler.js | 11 years ago | |
grammar-error.js | 12 years ago | |
parser.js | 11 years ago | |
peg.js | 11 years ago | |
utils.js | 11 years ago |