diff options
Diffstat (limited to 'src/parser/mod.rs')
-rw-r--r-- | src/parser/mod.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/parser/mod.rs b/src/parser/mod.rs index f17ffbf3a..49a69900f 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs | |||
@@ -4,6 +4,7 @@ use syntax_kinds::*; | |||
4 | 4 | ||
5 | #[macro_use] | 5 | #[macro_use] |
6 | mod parser; | 6 | mod parser; |
7 | mod input; | ||
7 | mod event; | 8 | mod event; |
8 | mod grammar; | 9 | mod grammar; |
9 | use self::event::Event; | 10 | use self::event::Event; |
@@ -11,7 +12,8 @@ use self::event::Event; | |||
11 | /// Parse a sequence of tokens into the representative node tree | 12 | /// Parse a sequence of tokens into the representative node tree |
12 | pub fn parse(text: String, tokens: &[Token]) -> File { | 13 | pub fn parse(text: String, tokens: &[Token]) -> File { |
13 | let events = { | 14 | let events = { |
14 | let mut parser = parser::Parser::new(&text, tokens); | 15 | let input = input::ParserInput::new(&text, tokens); |
16 | let mut parser = parser::Parser::new(&input); | ||
15 | grammar::file(&mut parser); | 17 | grammar::file(&mut parser); |
16 | parser.into_events() | 18 | parser.into_events() |
17 | }; | 19 | }; |