diff --git a/lib.rs b/lib.rs index 43a397cb..dd024dfb 100644 --- a/lib.rs +++ b/lib.rs @@ -8,19 +8,19 @@ extern mod extra; -pub use ast::*; -pub use tokenizer::*; -pub use parser::*; -pub use color::*; -pub use nth::*; +pub use tokenizer::tokenize; +pub use parser::{parse_stylesheet_rules, parse_rule_list, parse_declaration_list, + parse_one_rule, parse_one_declaration, parse_one_component_value}; +pub use color::{RGBA, Color, CurrentColor}; +pub use nth::parse_nth; pub use serializer::{ToCss, serialize_identifier, serialize_string}; pub mod ast; -pub mod tokenizer; -pub mod parser; -pub mod color; -pub mod nth; -pub mod serializer; +mod tokenizer; +mod parser; +mod color; +mod nth; +mod serializer; #[cfg(test)] mod tests; diff --git a/tests.rs b/tests.rs index 1e4dadba..947490ef 100644 --- a/tests.rs +++ b/tests.rs @@ -9,6 +9,7 @@ use extra::{tempfile, json}; use extra::json::ToJson; use super::*; +use ast::*; fn write_whole_file(path: &Path, data: &str) {