Work on error messages
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
7f7bf5c98d
commit
42698bb219
13 changed files with 333 additions and 160 deletions
|
|
@ -22,7 +22,7 @@ fn asting_benchmark(c: &mut Criterion) {
|
|||
parsing.bench_with_input(BenchmarkId::from_parameter(size), &input, |b, input| {
|
||||
b.iter(|| {
|
||||
let tokens = nomo::lexer::parse(input.clone()).unwrap();
|
||||
let _ast = nomo::parser::parse(tokens.tokens()).unwrap();
|
||||
let _ast = nomo::parser::parse(input.clone(), tokens.tokens()).unwrap();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
@ -46,7 +46,7 @@ fn asting_nested(c: &mut Criterion) {
|
|||
parsing.bench_with_input(BenchmarkId::from_parameter(size), &input, |b, input| {
|
||||
b.iter(|| {
|
||||
let tokens = nomo::lexer::parse(input.clone()).unwrap();
|
||||
let _ast = nomo::parser::parse(tokens.tokens()).unwrap();
|
||||
let _ast = nomo::parser::parse(input.clone(), tokens.tokens()).unwrap();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue