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 bea6b1fde7 Implement the |text| function
When called inside an action, the |text| function returns the text
matched by action's expression. It can be also called inside an
initializer or a predicate where it returns an empty string.

The |text| function will be useful mainly in cases where one needs a
structured representation of the input and simultaneously the raw text.
Until now, the only way to get the raw text in these cases was to
painfully build it from the structured representation.

Fixes GH-131.
12 years ago
..
compiler Implement the |text| function 12 years ago
compiler.js Kill the |toSource| method, introduce the |output| option 12 years ago
grammar-error.js Git repo npmization: Make the repo a npm package 12 years ago
parser.js Text nodes: Use text nodes in PEG.js grammar 12 years ago
peg.js Git repo npmization: Make the repo a npm package 12 years ago
utils.js Add backslash forgotten in the previous commit 12 years ago