Implemented a bunch more desugaring
This commit is contained in:
parent
5ae267f3ed
commit
101e90ad9b
11 changed files with 51 additions and 35 deletions
|
|
@ -9,11 +9,13 @@ static HParseResult* parse_epsilon(void* env, HParseState* state) {
|
|||
}
|
||||
|
||||
static HCFChoice* desugar_epsilon(HAllocator *mm__, void *env) {
|
||||
static HCFSequence res_seq = {NULL};
|
||||
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_seq,
|
||||
.action = NULL;
|
||||
.seq = res_ch_l,
|
||||
.action = NULL
|
||||
};
|
||||
|
||||
return &res_ch;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue