diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 13:40:40 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 13:40:40 +0100 |
commit | 9ce7e8110254e8db476c96bce2eecb2d16983159 (patch) | |
tree | abaddbafc4593948849394b430e3bde5c624fa22 /src/lib.rs | |
parent | 2a2815266b35de12bd3c48cc405e8b3e8fcf8885 (diff) |
cleanups
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/lib.rs b/src/lib.rs index 9049beb29..953c9b860 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
@@ -20,25 +20,25 @@ | |||
20 | #![allow(missing_docs)] | 20 | #![allow(missing_docs)] |
21 | //#![warn(unreachable_pub)] // rust-lang/rust#47816 | 21 | //#![warn(unreachable_pub)] // rust-lang/rust#47816 |
22 | 22 | ||
23 | extern crate itertools; | ||
23 | extern crate text_unit; | 24 | extern crate text_unit; |
24 | extern crate unicode_xid; | 25 | extern crate unicode_xid; |
25 | extern crate itertools; | ||
26 | 26 | ||
27 | pub mod algo; | ||
28 | pub mod ast; | ||
27 | mod lexer; | 29 | mod lexer; |
28 | mod parser; | 30 | mod parser; |
29 | mod syntax_kinds; | 31 | mod syntax_kinds; |
30 | mod yellow; | ||
31 | /// Utilities for simple uses of the parser. | 32 | /// Utilities for simple uses of the parser. |
32 | pub mod utils; | 33 | pub mod utils; |
33 | pub mod ast; | 34 | mod yellow; |
34 | pub mod algo; | ||
35 | 35 | ||
36 | pub use { | 36 | pub use { |
37 | ast::File, | ||
37 | lexer::{tokenize, Token}, | 38 | lexer::{tokenize, Token}, |
38 | syntax_kinds::SyntaxKind, | 39 | syntax_kinds::SyntaxKind, |
39 | text_unit::{TextRange, TextUnit}, | 40 | text_unit::{TextRange, TextUnit}, |
40 | yellow::{SyntaxNode, SyntaxNodeRef, TreeRoot, SyntaxRoot}, | 41 | yellow::{SyntaxNode, SyntaxNodeRef, SyntaxRoot, TreeRoot}, |
41 | ast::File, | ||
42 | }; | 42 | }; |
43 | 43 | ||
44 | pub(crate) use yellow::SyntaxError; | 44 | pub(crate) use yellow::SyntaxError; |
@@ -47,4 +47,3 @@ pub fn parse(text: String) -> SyntaxNode { | |||
47 | let tokens = tokenize(&text); | 47 | let tokens = tokenize(&text); |
48 | parser::parse::<yellow::GreenBuilder>(text, &tokens) | 48 | parser::parse::<yellow::GreenBuilder>(text, &tokens) |
49 | } | 49 | } |
50 | |||