dcf904c392
The previous default name was "exports.parser". This meant that to use the generated parser in Node.js, you had to use code like this: var parser = require("./my-cool-parser").parser; parser.parse(...); Now you can shorten it a bit: var parser = require("./my-cool-parser"); parser.parse(...); The shorter version makes sense since no other objects except the parser are exported from the module. |
||
---|---|---|
.. | ||
pegjs |