Skip to content
New issue

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

Update to pegjs version 0.10.0 #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Update to pegjs version 0.10.0 #21

wants to merge 1 commit into from

Conversation

jdesrosiers
Copy link

This brings grunt-peg up-to-date with version 0.10.0 of pegjs. Pegjs now supports exportVar natively. The peg.buildParser function was replaced with peg.generate. Differences in the way the generated
parser code was layed out meant having to rewrite the angular wrapper.

There was one significant change. I had to choose whether to maintain backwards compatibility or to match the behavior of the pegjs exportVar option. By default, the format option is "commonjs". exportVar only applies when format is "globals" or "umd". So, it is necessary to set the format option if you want to use exportVars.

pegjs now supports `exportVar` natively.  The `peg.buildParser` function
was replaced with `peg.generate`.  Differences in the way the generated
parser code was layed out meant having to rewrite the angular wrapper.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant