mirror of
https://codeberg.org/demostf/parser.git
synced 2026-06-03 10:14:06 +02:00
parser api wip
This commit is contained in:
parent
81f7ce8df9
commit
42358f243b
12 changed files with 52 additions and 56 deletions
|
|
@ -30,7 +30,7 @@ impl MessageHandler for AllMessages {
|
|||
test::black_box(message);
|
||||
}
|
||||
|
||||
fn get_output(self, state: &ParserState) -> Self::Output {
|
||||
fn into_output(self, state: &ParserState) -> Self::Output {
|
||||
test::black_box(true)
|
||||
}
|
||||
}
|
||||
|
|
@ -41,7 +41,7 @@ fn bench_all(input_file: &str, b: &mut Bencher) {
|
|||
let stream = demo.get_stream();
|
||||
b.iter(|| {
|
||||
let _ =
|
||||
test::black_box(DemoParser::parse_with_analyser(stream.clone(), AllMessages).unwrap());
|
||||
test::black_box(DemoParser::new_with_analyser(stream.clone(), AllMessages).unwrap());
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue