-
Notifications
You must be signed in to change notification settings - Fork 419
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
Report duplicate rules as errors #318
Comments
futagoza
added a commit
to futagoza/pegjs
that referenced
this issue
Feb 22, 2015
- can be disabled by option `{ reportDuplicateRules: false }` - resolves pegjs#318
Closed
dmajda
changed the title
Make duplicate rules an error
Report duplicate rules as errors
Sep 11, 2015
Mingun
added a commit
to Mingun/pegjs
that referenced
this issue
Jan 3, 2016
Mingun
added a commit
to Mingun/pegjs
that referenced
this issue
Jan 3, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
PEG.js currently allows duplicate rule definitions and applies “last one wins” semantics for these. It should report an error instead. The reason is that a duplicate rule definition is most likely unintended and a result of user error.
The text was updated successfully, but these errors were encountered: