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 5e146fce38 Text nodes: Implement text nodes
Implement a new syntax to extract matched strings from expressions. For
example, instead of:

  identifier = first:[a-zA-Z_] rest:[a-zA-Z0-9_]* { return first + rest.join(""); }

you can now just write:

  identifier = $([a-zA-Z_] [a-zA-Z0-9_]*)

This is useful mostly for "lexical" rules at the bottom of many
grammars.

Note that structured match results are still built for the expressions
prefixed by "$", they are just ignored. I plan to optimize this later
(sometime after the code generator rewrite).
12 years ago
..
compiler Text nodes: Implement text nodes 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: Implement text nodes 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