pegjs/examples
David Majda fe18c6ffd3 Fix |null| handling in the JSON parser
We couldn't return |null| in the |value| rule of the JSON example
parser because that would mean parse failure. So until now, we just
returned |"null"| (a string).

This was obviously stupid, so this commit changes the |value| rule to
return a special object instead that is converted to |null| later.

Based on patches by Patrick Logan (GH-91) and Jakub Vrána (GH-191).
2013-08-20 07:54:12 +02:00
..
arithmetics.pegjs Text nodes: Use text nodes in examples/arithmetics.pegjs 2012-12-02 17:25:52 +01:00
css.pegjs Text nodes: Use text nodes in examples/css.pegjs 2012-12-02 17:40:02 +01:00
javascript.pegjs Fix automatic semi-colon insertion 2013-01-12 18:59:49 +01:00
json.pegjs Fix |null| handling in the JSON parser 2013-08-20 07:54:12 +02:00