Skip to content

Conversation

@eddyb
Copy link
Member

@eddyb eddyb commented May 20, 2019

@CAD97
Copy link
Contributor

CAD97 commented May 20, 2019

(wrong button, sorry)

@eddyb eddyb force-pushed the intern branch 2 times, most recently from afd3493 to 1cd990d Compare May 20, 2019 20:34
@eddyb eddyb changed the title [WIP] Update for grammer using interning. Update for grammer using interning. May 20, 2019
Copy link
Contributor

@Centril Centril left a 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));
Copy link
Contributor

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 {
Copy link
Contributor

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 {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same on this one.

Copy link
Contributor

@qmx qmx left a 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

Copy link
Contributor

@CAD97 CAD97 left a 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

@Centril Centril merged commit bc72820 into rust-lang:master May 29, 2019
@eddyb eddyb deleted the intern branch May 29, 2019 21:00
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.

4 participants