mirror of
https://github.com/fluencelabs/lalrpop
synced 2025-03-16 17:00:53 +00:00
Add user uses in generated mod intern_token (should fix #113)
This commit is contained in:
parent
3037d7637b
commit
1b206d1665
@ -44,7 +44,7 @@ pub fn compile<W: Write>(
|
||||
let prefix = &grammar.prefix;
|
||||
|
||||
rust!(out, "mod {}intern_token {{", prefix);
|
||||
try!(out.write_standard_uses(prefix));
|
||||
try!(out.write_uses("", &grammar));
|
||||
rust!(out, "extern crate regex as {}regex;", prefix);
|
||||
rust!(out, "pub struct {}Matcher<'input> {{", prefix);
|
||||
rust!(out, "text: &'input str,"); // remaining input
|
||||
|
Loading…
x
Reference in New Issue
Block a user