diff options
author | Aleksey Kladov <[email protected]> | 2018-01-01 14:21:53 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-01-01 14:21:53 +0000 |
commit | 0af33a2587e4fb96e5001492792f1e926d576e27 (patch) | |
tree | 6cc976f70fc2a1a601cda09b37939163072d72d7 /src/parser | |
parent | 4cda3255309e7ed9c9d9094e12a8d91bdc1554ab (diff) |
Rename
Diffstat (limited to 'src/parser')
-rw-r--r-- | src/parser/event_parser/grammar.rs | 3 | ||||
-rw-r--r-- | src/parser/event_parser/mod.rs | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/parser/event_parser/grammar.rs b/src/parser/event_parser/grammar.rs index dd09061aa..c3496cccd 100644 --- a/src/parser/event_parser/grammar.rs +++ b/src/parser/event_parser/grammar.rs | |||
@@ -3,7 +3,8 @@ use super::parser::Parser; | |||
3 | 3 | ||
4 | use syntax_kinds::*; | 4 | use syntax_kinds::*; |
5 | 5 | ||
6 | pub fn parse_file(p: &mut Parser) { | 6 | pub fn file(p: &mut Parser) { |
7 | p.start(FILE); | 7 | p.start(FILE); |
8 | //TODO: parse_shebang | ||
8 | p.finish(); | 9 | p.finish(); |
9 | } \ No newline at end of file | 10 | } \ No newline at end of file |
diff --git a/src/parser/event_parser/mod.rs b/src/parser/event_parser/mod.rs index 14107720a..bdfd23974 100644 --- a/src/parser/event_parser/mod.rs +++ b/src/parser/event_parser/mod.rs | |||
@@ -15,6 +15,6 @@ pub(crate) enum Event { | |||
15 | 15 | ||
16 | pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> { | 16 | pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> { |
17 | let mut parser = parser::Parser::new(text, raw_tokens); | 17 | let mut parser = parser::Parser::new(text, raw_tokens); |
18 | grammar::parse_file(&mut parser); | 18 | grammar::file(&mut parser); |
19 | parser.into_events() | 19 | parser.into_events() |
20 | } \ No newline at end of file | 20 | } \ No newline at end of file |