-
Notifications
You must be signed in to change notification settings - Fork 23
Update for grammer using interning.
#119
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
Conversation
|
(wrong button, sorry) |
afd3493 to
1cd990d
Compare
grammer using interning.grammer using interning.
Centril
left a comment
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.
Some minor thoughts...
| grammar.extend(grammer::grammar_grammar()); | ||
| let mut cx = proc_macro::Context::new(); | ||
| let mut grammar = proc_macro::builtin(&mut cx); | ||
| grammar.extend(grammer::grammar_grammar(&mut cx)); |
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.
buffalo buffalo buffalo ;)
| } | ||
|
|
||
| #[proc_macro] | ||
| pub fn proc_macro_parser(input: TokenStream) -> TokenStream { |
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.
Preexisting, but could use a doc comment on the function in a follow up PR or something.
| use proc_quote::ToTokens as _; | ||
|
|
||
| #[proc_macro] | ||
| pub fn scannerless_parser(input: TokenStream) -> TokenStream { |
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.
Same on this one.
qmx
left a comment
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.
we might want to circle back and review our .unwrap() usage here
CAD97
left a comment
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.
This is ready to merge
See LykenSol/grammer#4.