Commit Graph

30 Commits (cb4ca7cca410fcd9c3a76b633f47e5475e442024)

Author SHA1 Message Date
John Benediktsson 4a144e5ea7 more test IN: cleanup. 2018-02-15 08:45:08 -08:00
Doug Coleman 15b13870ae peg.ebnf: Clean up EBNF: syntax.
The syntax for an EBNF parser is now ``EBNF: identifier string``. The
inline syntax went from [EBNF ...  EBNF] to EBNF[[ ]], EBNF[=[ ]=], etc.

<EBNF looked for a main word, but this functionality is just EBNF[[ ]]
now.
2017-08-05 22:23:57 -05:00
Björn Lindqvist 20711a0fd3 Adding escaping to CHAR: " -> CHAR: \"
It is not necessary to escape the " character, but it doesn't hurt and
is necessary for syntax-highlighting (FUEL) to work correctly.
2016-09-04 06:40:43 +02:00
John Benediktsson 8aadd38071 peg.javascript.tokenizer: rename escape rules slightly. 2016-06-12 06:52:23 -07:00
John Benediktsson e7fa92baac peg.javascript.tokenizer: support hex and unicode escapes. 2016-06-12 06:41:59 -07:00
John Benediktsson 29a2a25954 peg.javascript: add some other escapes since we're doing this. :-) 2016-06-11 15:22:20 -07:00
catb0t 385cf35e7f peg.javascript.tokenizer: allow escaped quotes in strings
Previously, the tokenizer didn't understand
escaped quotes in string literals. Also added was
a test to ensure the escaping works.
2016-06-11 15:17:50 -07:00
John Benediktsson 59caf874a3 syntax: removing #! as a comment character.
We don't need two types of comments and shebang (#!) is handled
natively by the lexer, so the original reason for #! is not valid.
2015-09-09 18:28:08 -07:00
Doug Coleman 9fb130791b factor: trim more whitespace from #! comments 2015-07-18 20:36:42 -07:00
John Benediktsson cd6ccdadc3 peg: use escaped character classes. 2015-07-16 08:44:59 -07:00
Doug Coleman 999aa7c897 factor: clean up spaces in -tests files 2015-07-02 10:34:01 -07:00
Doug Coleman 352e5de16a core, basis, extra: Remove DOS line endings from files.
Remove whitespace from end of lines.
Add a newline to the end of each file.
2015-06-29 17:25:40 -07:00
Benjamin Pollack 2c3dd8c3c8 Remove executable bit from tons of files that aren't 2014-11-05 20:40:42 -08:00
John Benediktsson c8732657b7 Cleanup more lint warnings. 2011-10-16 13:01:58 -07:00
Slava Pestov 05f3f9dcb9 Fixing unit tests for stack effect inference changes 2009-04-20 21:15:19 -05:00
Slava Pestov 6b25e99470 Add summary for heaps more vocabs 2009-02-16 21:05:13 -06:00
U-SLAVA-DFB8FF805\Slava 0eee4f89d4 Mess around with tags 2008-11-17 06:59:17 -06:00
Chris Double f3145c5961 [EBNF and EBNF: now return ast 2008-07-10 13:56:06 +12:00
Chris Double 8f718fa41e Parse more valid JavaScript 2008-07-10 13:56:06 +12:00
Chris Double 7404c5dc01 Add ShiftExpr to JavaScript parser 2008-07-10 13:56:06 +12:00
Chris Double 4394cb08f6 RegExp fix for javascript tokenizer 2008-07-10 13:56:06 +12:00
Chris Double acb6d3a312 Fix peg.ebnf tests. Handle \ in EBNF 2008-07-10 13:56:06 +12:00
Chris Double cf00bc8a0c Add flags to regexp tokenizer in JavaScript 2008-07-10 13:56:06 +12:00
Chris Double a15783cabb Fix typo in != in JavaScript parser 2008-06-21 10:32:15 +12:00
Chris Double 5433553571 Remove EBNF: and [EBNF EBNF] +tokenizer syntax
replaced with tokenizer support in ebnf grammar itself.
2008-06-21 01:00:27 +12:00
Chris Double b6b5f12732 Provide ability to plug in tokenizers to ebnf parsers 2008-06-20 22:45:19 +12:00
Chris Double fcd1e39834 More JavaScript fixes for keyword handling 2008-06-19 01:20:33 +12:00
Chris Double c26d87e117 Fix handling of JavasScript names which partially match reserved words 2008-06-19 01:01:46 +12:00
Chris Double fc7baebacb Fix handling of _ and $ in Javascript names 2008-06-19 00:51:47 +12:00
Chris Double 6f8e2a4b0d Refactor JavaScript parser 2008-06-19 00:42:11 +12:00