We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example:
foo.peggy:
foo = "1" bar = "2"
bin/peggy.js -S bar --allowed-start-rules foo,bar f.peggy
const {parse} = require('./f.js') parse("2") // Error, expected "1"
generate-js.js has this:
const startRuleFunction = name(allowedStartRules[0]);
there should be a new option defaultStartRule that gets hooked up in the CLI correctly and ends up in the AST for later use by generate-js.
defaultStartRule
The text was updated successfully, but these errors were encountered:
Work-around:
bin/peggy.js --allowed-start-rules bar,foo f.peggy
the docs clearly say that -S is only for testing.
-S
Sorry, something went wrong.
No branches or pull requests
Example:
foo.peggy:
generate-js.js has this:
there should be a new option
defaultStartRule
that gets hooked up in the CLI correctly and ends up in the AST for later use by generate-js.The text was updated successfully, but these errors were encountered: