5 Commits (698564a3c25991da8937460ed5d348af9fa60721)

Author SHA1 Message Date
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"?)
14 years ago
David Majda 8f2aa1e834 Fixed a bug in the example grammar where integers beginning with 0 were parsed as octal. 14 years ago
David Majda aff85fd228 Removed subtraction and division from the example grammar because of wrong associativity. 14 years ago
David Majda 9d239db2d6 Simplified the example arithmetics grammar once more + addded comment. 14 years ago
David Majda 1ee0049b08 Changed standard grammar extension from .peg to .pegjs (it is more specific). 14 years ago