From 9ce7e8110254e8db476c96bce2eecb2d16983159 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Tue, 31 Jul 2018 15:40:40 +0300 Subject: cleanups --- src/lib.rs | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) (limited to 'src/lib.rs') 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 @@ #![allow(missing_docs)] //#![warn(unreachable_pub)] // rust-lang/rust#47816 +extern crate itertools; extern crate text_unit; extern crate unicode_xid; -extern crate itertools; +pub mod algo; +pub mod ast; mod lexer; mod parser; mod syntax_kinds; -mod yellow; /// Utilities for simple uses of the parser. pub mod utils; -pub mod ast; -pub mod algo; +mod yellow; pub use { + ast::File, lexer::{tokenize, Token}, syntax_kinds::SyntaxKind, text_unit::{TextRange, TextUnit}, - yellow::{SyntaxNode, SyntaxNodeRef, TreeRoot, SyntaxRoot}, - ast::File, + yellow::{SyntaxNode, SyntaxNodeRef, SyntaxRoot, TreeRoot}, }; pub(crate) use yellow::SyntaxError; @@ -47,4 +47,3 @@ pub fn parse(text: String) -> SyntaxNode { let tokens = tokenize(&text); parser::parse::(text, &tokens) } - -- cgit v1.2.3