Added benchmark skeleton, and at least stubs for all of the necessary functions
This commit is contained in:
parent
8eececcac8
commit
d0d9a94fd0
10 changed files with 239 additions and 13 deletions
15
src/backends/packrat.c
Normal file
15
src/backends/packrat.c
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
#include "../internal.h"
|
||||
|
||||
int h_packrat_compile(HAllocator* mm__, HParser* parser, const void* params) {
|
||||
return 0; // No compilation necessary, and everything should work
|
||||
// out of the box.
|
||||
}
|
||||
|
||||
HParseResult *h_packrat_parse(HAllocator* mm__, HParser* parser, HParseState* parse_state) {
|
||||
return NULL; // TODO: fill this in.
|
||||
}
|
||||
|
||||
HParserBackendVTable h__packrat_backend_vtable = {
|
||||
.compile = h_packrat_compile,
|
||||
.parse = h_packrat_parse
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue