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 1b2279e026 Error handling: Make predicates always return |undefined|
After making the |?| operator return |null| instead of an empty string
in the previous commit, empty strings were still returned from
predicates. This didn't make much sense.

Return value of a predicate is unimportant (if you have one in hand, you
already know the predicate succeeded) and one could even argue that
predicates shouldn't return any value at all. The closest thing to
"return no value" in JavaScript is returning |undefined|, so I decided
to make predicates return exactly that.

Implements part of #198.
11 years ago
..
compiler Error handling: Make predicates always return |undefined| 11 years ago
compiler.js Plugin API: Split compiler passes into stages 12 years ago
grammar-error.js Git repo npmization: Make the repo a npm package 12 years ago
parser.js Error handling: Make predicates always return |undefined| 11 years ago
peg.js Plugin API: Split compiler passes into stages 12 years ago
utils.js Fix typo in comment 11 years ago