bin/pegjs: Default parser variable name is "module.exports"
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.redux
parent
13a3621e79
commit
dcf904c392
Loading…
Reference in New Issue