pegjs/lib/compiler/passes
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
..
allocate-registers.js Text nodes: Implement text nodes 2012-12-02 17:05:13 +01:00
generate-code.js Implement the |text| function 2012-12-10 21:01:30 +01:00
remove-proxy-rules.js Text nodes: Implement text nodes 2012-12-02 17:05:13 +01:00
report-left-recursion.js Text nodes: Implement text nodes 2012-12-02 17:05:13 +01:00
report-missing-rules.js Text nodes: Implement text nodes 2012-12-02 17:05:13 +01:00