diff options
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 | } |