aboutsummaryrefslogtreecommitdiff
path: root/src/parser/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser/mod.rs')
-rw-r--r--src/parser/mod.rs4
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]
6mod parser; 6mod parser;
7mod input;
7mod event; 8mod event;
8mod grammar; 9mod grammar;
9use self::event::Event; 10use 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
12pub fn parse(text: String, tokens: &[Token]) -> File { 13pub 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 };