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
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
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
Slava Pestov
b62630b5ac
Updating code in basis and extra for stricter vocab search path semantics
2009-05-14 23:23:06 -05:00
Chris Double
c8511b483f
Add support for 'with' in js parser. Now parses jquery successfully
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
87bbe8cae1
Get for(x in y) { } working in js parser
2008-07-10 13:56:06 +12:00
Chris Double
bf664e7ec8
Add ShiftExpr to JavaScript parser
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
cf00bc8a0c
Add flags to regexp tokenizer in JavaScript
2008-07-10 13:56:06 +12:00
Chris Double
9c96edb805
Fix 'For' statement in JavaScript parser
2008-07-10 13:56:06 +12:00
Chris Double
37ade561a9
Fix unary expression in js grammar
2008-07-10 13:56:05 +12:00
Chris Double
75814c35f4
Fix MulExpr to use Unary on rhs
2008-06-24 10:50:41 +12:00
Chris Double
f0a1f8fe5f
Fix JavaScript new expression
2008-06-21 16:56:21 +12:00
Chris Double
c5a9ee0e16
Add typeof, void and delete to JavaScript grammar
2008-06-21 02:40:08 +12:00
Chris Double
8fa0c80d4e
Add regular expressions to JavaScript parser
2008-06-21 02:29:47 +12:00
Chris Double
e8f9904549
Add \r to the JavaScript automatic semicolon insertion routine
2008-06-21 02:21:54 +12:00
Chris Double
ff8e521907
Fix automatic semicolon insertion rule in JavaScript parser
2008-06-21 02:06:58 +12:00
Chris Double
6b83ab9d90
Fix terminal parser with non-default tokenizers
2008-06-21 01:49:07 +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
d5e5e47944
Fix bug in javascript automatic semicolon insertion rule
2008-06-19 01:39:51 +12:00
Chris Double
6f8e2a4b0d
Refactor JavaScript parser
2008-06-19 00:42:11 +12:00