mirror of
https://github.com/Noratrieb/dilaria.git
synced 2026-01-14 17:35:03 +01:00
add fuzz
This commit is contained in:
parent
555aa21cc4
commit
141e8e09bf
7 changed files with 95 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ mod errors;
|
|||
mod lex;
|
||||
mod parse;
|
||||
|
||||
pub use lex::*;
|
||||
|
||||
pub fn run_program(program: &str) {
|
||||
let lexer = lex::Lexer::lex(program);
|
||||
let (success, errors) = lexer.partition::<Vec<_>, _>(|result| result.is_ok());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue