Simplify the interface to cretonne-reader.
Export a single function: parse_functions() which results a vector of functions parsed from the source string. Hide the parser and lexer modules. They are not useful to external clients.
This commit is contained in:
@@ -5,8 +5,9 @@
|
||||
|
||||
extern crate cretonne;
|
||||
|
||||
pub use parser::{Result, parse_functions};
|
||||
pub use testcommand::{TestCommand, TestOption};
|
||||
|
||||
pub mod lexer;
|
||||
pub mod parser;
|
||||
mod lexer;
|
||||
mod parser;
|
||||
mod testcommand;
|
||||
|
||||
Reference in New Issue
Block a user