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.
David Majda 39084496ca Expose the parser object in action/predicate code
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
10 years ago
..
compiler Expose the parser object in action/predicate code 10 years ago
compiler.js .jshintrc: Add the "forin" option & fix fallout 11 years ago
grammar-error.js Git repo npmization: Make the repo a npm package 12 years ago
parser.js Expose the parser object in action/predicate code 10 years ago
peg.js Update version to 0.8.0 11 years ago
utils.js .jshintrc: Add the "forin" option & fix fallout 11 years ago