From 0af33a2587e4fb96e5001492792f1e926d576e27 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 1 Jan 2018 17:21:53 +0300 Subject: Rename --- src/parser/event_parser/grammar.rs | 3 ++- src/parser/event_parser/mod.rs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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; use syntax_kinds::*; -pub fn parse_file(p: &mut Parser) { +pub fn file(p: &mut Parser) { p.start(FILE); + //TODO: parse_shebang p.finish(); } \ 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 { pub(crate) fn parse<'t>(text: &'t str, raw_tokens: &'t [Token]) -> Vec { let mut parser = parser::Parser::new(text, raw_tokens); - grammar::parse_file(&mut parser); + grammar::file(&mut parser); parser.into_events() } \ No newline at end of file -- cgit v1.2.3