desugaring done for many and attr_bool
This commit is contained in:
parent
101e90ad9b
commit
ab89b0fd4d
6 changed files with 70 additions and 15 deletions
|
|
@ -8,19 +8,6 @@ static HParseResult* parse_epsilon(void* env, HParseState* state) {
|
|||
return res;
|
||||
}
|
||||
|
||||
static HCFChoice* desugar_epsilon(HAllocator *mm__, void *env) {
|
||||
static HCFChoice *res_seq_l[] = {NULL};
|
||||
static HCFSequence res_seq = {res_seq_l};
|
||||
static HCFSequence *res_ch_l[] = {&res_seq, NULL};
|
||||
static HCFChoice res_ch = {
|
||||
.type = HCF_CHOICE,
|
||||
.seq = res_ch_l,
|
||||
.action = NULL
|
||||
};
|
||||
|
||||
return &res_ch;
|
||||
}
|
||||
|
||||
static const HParserVtable epsilon_vt = {
|
||||
.parse = parse_epsilon,
|
||||
.isValidRegular = h_true,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue