pegjs/lib
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.
2012-12-10 21:01:30 +01:00
..
compiler Implement the |text| function 2012-12-10 21:01:30 +01:00
compiler.js Kill the |toSource| method, introduce the |output| option 2012-11-11 18:18:52 +01:00
grammar-error.js Git repo npmization: Make the repo a npm package 2012-11-10 14:21:14 +01:00
parser.js Text nodes: Use text nodes in PEG.js grammar 2012-12-02 17:23:49 +01:00
peg.js Git repo npmization: Make the repo a npm package 2012-11-10 14:21:14 +01:00
utils.js Add backslash forgotten in the previous commit 2012-11-21 08:35:43 +01:00