diff options
author | Aleksey Kladov <[email protected]> | 2018-07-31 21:38:19 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-07-31 21:44:31 +0100 |
commit | 7912189ec304b28c4df0030b5282cf3d21074154 (patch) | |
tree | 03a0a1b128439fdefbd1d012b392995ca8a6e264 /src/lib.rs | |
parent | d1400e95d7ad701fcba1191cb00968c2eae8b394 (diff) |
reorganize
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/lib.rs b/src/lib.rs index a72d9e3cb..8f25de9a4 100644 --- a/src/lib.rs +++ b/src/lib.rs | |||
@@ -27,7 +27,11 @@ extern crate unicode_xid; | |||
27 | pub mod algo; | 27 | pub mod algo; |
28 | pub mod ast; | 28 | pub mod ast; |
29 | mod lexer; | 29 | mod lexer; |
30 | mod parser; | 30 | #[macro_use] |
31 | mod parser_api; | ||
32 | mod grammar; | ||
33 | mod parser_impl; | ||
34 | |||
31 | mod syntax_kinds; | 35 | mod syntax_kinds; |
32 | /// Utilities for simple uses of the parser. | 36 | /// Utilities for simple uses of the parser. |
33 | pub mod utils; | 37 | pub mod utils; |
@@ -43,5 +47,5 @@ pub use { | |||
43 | 47 | ||
44 | pub fn parse(text: String) -> SyntaxNode { | 48 | pub fn parse(text: String) -> SyntaxNode { |
45 | let tokens = tokenize(&text); | 49 | let tokens = tokenize(&text); |
46 | parser::parse::<yellow::GreenBuilder>(text, &tokens) | 50 | parser_impl::parse::<yellow::GreenBuilder>(text, &tokens) |
47 | } | 51 | } |