PEG.js grammar: Add limitations

The limitations are inherited from the JavaScript example grammar.
redux
David Majda 11 years ago
parent 0459ab6b37
commit cf294ef236

@ -8,6 +8,18 @@
* are directly taken or adapted from the JavaScript example grammar (see
* examples/javascript.pegjs).
*
* Limitations:
*
* * Non-BMP characters are completely ignored to avoid surrogate pair
* handling.
*
* * One can create identifiers containing illegal characters using Unicode
* escape sequences. For example, "abcd\u0020efgh" is not a valid
* identifier, but it is accepted by the parser.
*
* Both limitations could be resolved, but the costs would likely outweigh
* the benefits.
*
* [1] http://www.ecma-international.org/publications/standards/Ecma-262.htm
*/

Loading…
Cancel
Save