aboutsummaryrefslogtreecommitdiff
path: root/src/parser
diff options
context:
space:
mode:
Diffstat (limited to 'src/parser')
-rw-r--r--src/parser/event_parser/grammar.rs3
-rw-r--r--src/parser/event_parser/mod.rs2
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
4use syntax_kinds::*; 4use syntax_kinds::*;
5 5
6pub fn parse_file(p: &mut Parser) { 6pub 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
16pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec<Event> { 16pub(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