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 1988110a28 Fix code generated for classes starting with "\^"
Before this commit, incorrect regexps were produced for classes starting
with "\^". For example, this grammar:

  start = [\^a]

didn't match "a" because the generated regexp inside the parser was
/^[^a]/, not /^[\^a]/ as it should be.

This commit fixes the issue by escaping "^" in |quoteForRegexpClass|.

Fixes GH-125.
12 years ago
..
compiler Kill the |toSource| method, introduce the |output| option 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 Kill the |toSource| method, introduce the |output| option 12 years ago
peg.js Git repo npmization: Make the repo a npm package 12 years ago
utils.js Fix code generated for classes starting with "\^" 12 years ago