just/src/fuzzing.rs

10 lines
188 B
Rust
Raw Normal View History

2018-10-13 03:12:35 -07:00
use common::*;
pub fn compile(text: &str) {
2018-10-13 06:38:44 -07:00
if let Err(error) = Parser::parse(text) {
if let CompilationErrorKind::Internal{..} = error.kind {
panic!("{}", error)
}
}
2018-10-13 03:12:35 -07:00
}