Still doesn't build, but desugaring is farther along
This commit is contained in:
parent
36e1f66de0
commit
156be7a559
16 changed files with 266 additions and 26 deletions
|
|
@ -110,15 +110,12 @@ typedef const HParsedToken* (*HAction)(const HParseResult *p);
|
|||
*/
|
||||
typedef bool (*HPredicate)(HParseResult *p);
|
||||
|
||||
typedef struct HParserVtable_ {
|
||||
HParseResult* (*parse)(void *env, HParseState *state);
|
||||
bool (*isValidRegular)(void *env);
|
||||
bool (*isValidCF)(void *env);
|
||||
} HParserVtable;
|
||||
typedef struct HParserVtable_ HParserVtable;
|
||||
|
||||
typedef struct HParser_ {
|
||||
const HParserVtable *vtable;
|
||||
void *env;
|
||||
void *data; /* e.g., parse tables */
|
||||
} HParser;
|
||||
|
||||
// {{{ Stuff for benchmarking
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue