Desugaring functions are all done! But we're not ready for the CF backends yet because desugared structures still need to be stashed in the parser.

This commit is contained in:
Meredith L. Patterson 2013-02-20 21:03:34 -05:00
parent ab89b0fd4d
commit 810c06c6db
2 changed files with 7 additions and 2 deletions

View file

@ -112,10 +112,13 @@ typedef bool (*HPredicate)(HParseResult *p);
typedef struct HParserVtable_ HParserVtable;
typedef struct HCFChoice_ HCFChoice; // forward declaration
typedef struct HParser_ {
const HParserVtable *vtable;
void *env;
void *data; /* e.g., parse tables */
HCFChoice *desugared; /* if the parser can be desugared, its desugared form */
} HParser;
// {{{ Stuff for benchmarking