David Majda
698564a3c2
Replace ":" after a rule name with "="
...
I'll introduce labelled expressions shortly and I want to use ":" as a
label-expression separator. This change avoids conflict between the two
meanings of ":". (What would e.g. "foo: 'bar'" mean? Rule "foo"
matching string "bar", or string "bar" labelled "foo"?)
2010-05-31 16:31:45 +02:00
David Majda
f9ea46ef15
Fix string literal parsing in the JavaScript grammar
2010-05-31 15:26:35 +02:00
David Majda
11c67b0507
Remove trailing whitespace
2010-05-22 13:15:20 +02:00
David Majda
de7536fd94
Added notes about ECMA-262, 5th ed. compatibility to the JSON example grammar.
2010-04-19 20:00:22 +02:00
David Majda
7fc491412d
Work around the fact that IE does not recognize "\v" in strings.
2010-04-14 21:29:05 +02:00
David Majda
6a194e8f68
Added example JavaScript parser.
2010-04-11 13:18:23 +02:00
David Majda
751a33715d
Added example CSS parser.
2010-03-29 12:44:32 +02:00
David Majda
a1adbf0607
Added example JSON parser.
2010-03-22 12:18:58 +01:00
David Majda
8f2aa1e834
Fixed a bug in the example grammar where integers beginning with 0 were parsed as octal.
2010-03-18 20:06:55 +01:00
David Majda
aff85fd228
Removed subtraction and division from the example grammar because of wrong associativity.
2010-03-18 20:06:05 +01:00
David Majda
9d239db2d6
Simplified the example arithmetics grammar once more + addded comment.
2010-03-14 18:46:53 +01:00
David Majda
1ee0049b08
Changed standard grammar extension from .peg to .pegjs (it is more specific).
2010-03-13 09:52:54 +01:00
David Majda
eade133ea6
Simplified the example arithmetics grammar.
2010-03-12 14:27:22 +01:00
David Majda
c3dd696a3e
Initial commit.
2010-03-07 20:41:02 +01:00