David Majda
2f671e0022
src/peg.js: Prevent redefinition of |undefined| differently
...
Fixes the following JSHint error:
./src/peg.js: line 5, col 5, Expected an identifier and instead saw 'undefined' (a reserved word).
13 years ago
David Majda
827a5ac312
Add PEG.js version information and homepage header to peg.js
13 years ago
David Majda
13a3621e79
Export the PEG library in simpler and more robust way
13 years ago
David Majda
4ea2003b7b
Export PEG.VERSION property with PEG.js version
...
Value of the property is read in build time from the VERSION file.
14 years ago
David Majda
e3effab86b
Behave correctly in Rhino context (fixes previous commit)
14 years ago
David Majda
2120de36af
Behave like CommonJS module in CommonJS context
14 years ago
David Majda
77ec4f7162
Little bit cleaner way to protect against |undefined| redefinition
14 years ago
David Majda
a42b957573
Remove now mostly useless comment headers from the code
14 years ago
David Majda
e59f3ba338
Split the source code into several files, introduce build system
...
The source code is now in the src directory. The library needs to be
built using "rake", which creates the lib/peg.js file by combining the
source files.
14 years ago