Rename parser to lexer
Signed-off-by: Marcel Müller <neikos@neikos.email>
This commit is contained in:
parent
10bcd77040
commit
f87f4a0262
11 changed files with 46 additions and 46 deletions
|
|
@ -19,7 +19,7 @@ fn asting_benchmark(c: &mut Criterion) {
|
|||
parsing.throughput(criterion::Throughput::Bytes(input.len() as u64));
|
||||
parsing.bench_with_input(BenchmarkId::from_parameter(size), &input, |b, input| {
|
||||
b.iter(|| {
|
||||
let tokens = nomo::parser::parse(input.clone()).unwrap();
|
||||
let tokens = nomo::lexer::parse(input.clone()).unwrap();
|
||||
let _ast = nomo::ast::parse(tokens.tokens()).unwrap();
|
||||
});
|
||||
});
|
||||
|
|
@ -43,7 +43,7 @@ fn asting_nested(c: &mut Criterion) {
|
|||
parsing.throughput(criterion::Throughput::Bytes(input.len() as u64));
|
||||
parsing.bench_with_input(BenchmarkId::from_parameter(size), &input, |b, input| {
|
||||
b.iter(|| {
|
||||
let tokens = nomo::parser::parse(input.clone()).unwrap();
|
||||
let tokens = nomo::lexer::parse(input.clone()).unwrap();
|
||||
let _ast = nomo::ast::parse(tokens.tokens()).unwrap();
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue