Extract Result and Error into their own module.

Also include the err! macro and make it usable outside the module.
This commit is contained in:
Jakob Stoklund Olesen
2016-09-19 10:08:21 -07:00
parent b5828cb9a3
commit ac46de7200
5 changed files with 53 additions and 45 deletions

View File

@@ -5,11 +5,13 @@
extern crate cretonne;
pub use parser::{Result, parse_functions, parse_test};
pub use error::{Location, Result, Error};
pub use parser::{parse_functions, parse_test};
pub use testcommand::{TestCommand, TestOption};
pub use testfile::{TestFile, Details};
pub use sourcemap::SourceMap;
mod error;
mod lexer;
mod parser;
mod testcommand;