Still broken, but all desugaring functions stubbed out.

This commit is contained in:
Meredith L. Patterson 2013-02-03 02:18:19 -05:00
parent 156be7a559
commit 5ae267f3ed
14 changed files with 147 additions and 26 deletions

View file

@ -10,10 +10,16 @@ static HParseResult* parse_not(void* env, HParseState* state) {
}
}
static const HCFChoice* desugar_not(HAllocator *mm__, void *env) {
assert_message(0, "Not context-free, can't be desugared");
return NULL;
}
static const HParserVtable not_vt = {
.parse = parse_not,
.isValidRegular = h_false, /* see and.c for why */
.isValidCF = h_false, /* also see and.c for why */
.desugar = desugar_not,
};
const HParser* h_not(const HParser* p) {