pegjs/lib
David Majda a4a66a2e5b Switch from first/rest to head/tail in the PEG.js grammar
In the past year I worked on various grammars where first/rest or
head/tail were used as labels for parts of lists. I found I associate
head/tail with a list immediately, while in case of first/rest I have to
"parse" grammar rules for a while before understanding their structure.

Moreover, I tend to assume that rest is a list of the same thigs as
first, but I don't have such assumption in case of head/tail. This
assumption was in conflict with the grammar structure.

I'm not sure how much these observations are applicable to others, but I
decided to act on them and switch from first/rest to head/tail.
2015-10-09 17:23:36 +02:00
..
compiler Use literal raw text in error messages 2015-09-18 10:56:05 -07:00
utils Remove trailing commas in object literals 2015-08-21 16:02:13 +02:00
compiler.js Rename generate-javascript.js to generate-js.js 2015-09-04 15:41:20 +02:00
grammar-error.js Merge pull request #347 from mbaumgartl/errorstack 2015-07-03 13:05:41 +02:00
parser.js Switch from first/rest to head/tail in the PEG.js grammar 2015-10-09 17:23:36 +02:00
peg.js Update version to 0.9.0 2015-08-30 08:22:26 +02:00