Implemented a bunch more desugaring
This commit is contained in:
parent
5ae267f3ed
commit
101e90ad9b
11 changed files with 51 additions and 35 deletions
|
|
@ -12,11 +12,16 @@ static HParseResult* parse_unimplemented(void* env, HParseState *state) {
|
|||
return &result;
|
||||
}
|
||||
|
||||
static HCFChoice* desugar_unimplemented(HAllocator *mm__, void *env) {
|
||||
assert_message(0, "'h_unimplemented' is not context-free, can't be desugared");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static const HParserVtable unimplemented_vt = {
|
||||
.parse = parse_unimplemented,
|
||||
.isValidRegular = h_false,
|
||||
.isValidCF = h_false,
|
||||
.desugar = NULL,
|
||||
.desugar = desugar_unimplemented,
|
||||
};
|
||||
|
||||
static HParser unimplemented = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue