10 lines
188 B
Rust
10 lines
188 B
Rust
use common::*;
|
|
|
|
pub fn compile(text: &str) {
|
|
if let Err(error) = Parser::parse(text) {
|
|
if let CompilationErrorKind::Internal{..} = error.kind {
|
|
panic!("{}", error)
|
|
}
|
|
}
|
|
}
|