aboutsummaryrefslogtreecommitdiff
path: root/src/parser/grammar
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-29 13:16:07 +0100
committerAleksey Kladov <[email protected]>2018-07-29 13:16:07 +0100
commit415c891d641fa305e7ddbbbcc78db990dd5d3564 (patch)
tree4b6e1e0aa4b5a732aeae8945e75c9bee3bbf1d65 /src/parser/grammar
parentad188d4c3db34f035408afbdd6d2f3c308121f0a (diff)
Reorganize
Diffstat (limited to 'src/parser/grammar')
-rw-r--r--src/parser/grammar/mod.rs13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/parser/grammar/mod.rs b/src/parser/grammar/mod.rs
index 23216452f..085e62d56 100644
--- a/src/parser/grammar/mod.rs
+++ b/src/parser/grammar/mod.rs
@@ -21,11 +21,6 @@
21//! After adding a new inline-test, run `cargo collect-tests` to extract 21//! After adding a new inline-test, run `cargo collect-tests` to extract
22//! it as a standalone text-fixture into `tests/data/parser/inline`, and 22//! it as a standalone text-fixture into `tests/data/parser/inline`, and
23//! run `cargo test` once to create the "gold" value. 23//! run `cargo test` once to create the "gold" value.
24use parser::parser::Parser;
25use parser::token_set::TokenSet;
26use SyntaxKind;
27use syntax_kinds::*;
28
29mod items; 24mod items;
30mod attributes; 25mod attributes;
31mod expressions; 26mod expressions;
@@ -34,6 +29,14 @@ mod patterns;
34mod paths; 29mod paths;
35mod type_params; 30mod type_params;
36 31
32use {
33 SyntaxKind::{self, *},
34 parser::{
35 parser::Parser,
36 token_set::TokenSet
37 }
38};
39
37pub(crate) fn file(p: &mut Parser) { 40pub(crate) fn file(p: &mut Parser) {
38 let file = p.start(); 41 let file = p.start();
39 p.eat(SHEBANG); 42 p.eat(SHEBANG);