just/src/fuzzing.rs
2018-10-13 21:38:44 +08:00

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)
}
}
}