aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-07-31 13:40:40 +0100
committerAleksey Kladov <[email protected]>2018-07-31 13:40:40 +0100
commit9ce7e8110254e8db476c96bce2eecb2d16983159 (patch)
treeabaddbafc4593948849394b430e3bde5c624fa22 /src/lib.rs
parent2a2815266b35de12bd3c48cc405e8b3e8fcf8885 (diff)
cleanups
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs13
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
23extern crate itertools;
23extern crate text_unit; 24extern crate text_unit;
24extern crate unicode_xid; 25extern crate unicode_xid;
25extern crate itertools;
26 26
27pub mod algo;
28pub mod ast;
27mod lexer; 29mod lexer;
28mod parser; 30mod parser;
29mod syntax_kinds; 31mod syntax_kinds;
30mod yellow;
31/// Utilities for simple uses of the parser. 32/// Utilities for simple uses of the parser.
32pub mod utils; 33pub mod utils;
33pub mod ast; 34mod yellow;
34pub mod algo;
35 35
36pub use { 36pub 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
44pub(crate) use yellow::SyntaxError; 44pub(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