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:
Jakob Stoklund Olesen
2016-09-13 11:01:21 -07:00
parent d0fb647357
commit 169a2f7542
7 changed files with 20 additions and 17 deletions

View File

@@ -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;