Skip to content

Commit

Permalink
Added notes about ECMA-262, 5th ed. compatibility to the JSON example…
Browse files Browse the repository at this point in the history
… grammar.
  • Loading branch information
dmajda committed Apr 19, 2010
1 parent a86e06a commit de7536f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/json.pegjs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ e: [eE] [+-]? { return $1 + $2; }
/*
* The following rules are not present in the original JSON gramar, but they are
* assumed to exist implicitly.
*
* FIXME: Define them according to ECMA-262, 5th ed.
*/
digit: [0-9]
Expand All @@ -100,5 +102,5 @@ hexDigit: [0-9a-fA-F]
_ "whitespace": whitespace*
// Whitespace is undefined in the original JSON grammar, so I assume a simple
// conventional definition.
// conventional definition consistent with ECMA-262, 5th ed.
whitespace: [ \t\n\r]

0 comments on commit de7536f

Please sign in to comment.