fe18c6ffd3
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). |
||
---|---|---|
.. | ||
arithmetics.pegjs | ||
css.pegjs | ||
javascript.pegjs | ||
json.pegjs |