-
Notifications
You must be signed in to change notification settings - Fork 0
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
Support typed BNF grammar #5
Conversation
9b075cb
to
c2ae074
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 16 changed files in this pull request and generated 3 suggestions.
Files not reviewed (10)
- src/grammar/snapshots/bnfgen__grammar__test__brainfuck.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__invalid_token.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__repeat.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__typed.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__unexpected_eof.snap: Language not supported
- src/parser.lalrpop: Language not supported
- src/utils.rs: Evaluated as low risk
- src/generator.rs: Evaluated as low risk
- src/grammar/checked.rs: Evaluated as low risk
- src/grammar/mod.rs: Evaluated as low risk
f61a4c7
to
8ca11f4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 20 changed files in this pull request and generated 2 suggestions.
Files not reviewed (14)
- examples/set-algebra-typed.bnfgen: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__brainfuck.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__invalid_token.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__repeat.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__typed.snap: Language not supported
- src/grammar/snapshots/bnfgen__grammar__test__unexpected_eof.snap: Language not supported
- src/parser.lalrpop: Language not supported
- src/snapshots/bnfgen__generator__test__tree_generator.snap: Language not supported
- src/snapshots/bnfgen__generator__test__typed_generator.snap: Language not supported
- src/snapshots/bnfgen__generator__test__typed_set_algebra.snap: Language not supported
- src/utils.rs: Evaluated as low risk
- src/grammar/rule.rs: Evaluated as low risk
- src/token.rs: Evaluated as low risk
- src/grammar/mod.rs: Evaluated as low risk
5e116ad
to
20431eb
Compare
This PR introduces typing for the BNF grammar extension, specifically, each
non-terminal
can be typed (optionally). For example, a common use case is arithmetic expressions: