diff options
Diffstat (limited to 'src/parser/mod.rs')
-rw-r--r-- | src/parser/mod.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/parser/mod.rs b/src/parser/mod.rs index e72ab05af..8631baa2e 100644 --- a/src/parser/mod.rs +++ b/src/parser/mod.rs | |||
@@ -1,18 +1,14 @@ | |||
1 | #[macro_use] | 1 | #[macro_use] |
2 | mod token_set; | 2 | mod token_set; |
3 | mod parser; | ||
4 | mod input; | ||
5 | mod event; | 3 | mod event; |
6 | mod grammar; | 4 | mod grammar; |
5 | mod input; | ||
6 | mod parser; | ||
7 | 7 | ||
8 | use { | 8 | use {lexer::Token, parser::event::process}; |
9 | lexer::Token, | ||
10 | parser::event::{process} | ||
11 | }; | ||
12 | 9 | ||
13 | pub(crate) use self::event::Sink; | 10 | pub(crate) use self::event::Sink; |
14 | 11 | ||
15 | |||
16 | /// Parse a sequence of tokens into the representative node tree | 12 | /// Parse a sequence of tokens into the representative node tree |
17 | pub(crate) fn parse<S: Sink>(text: String, tokens: &[Token]) -> S::Tree { | 13 | pub(crate) fn parse<S: Sink>(text: String, tokens: &[Token]) -> S::Tree { |
18 | let events = { | 14 | let events = { |