Most of RVM desugaring done in first draft, for TQ to check.
This commit is contained in:
parent
a88c6c8a8a
commit
07d35c72ff
23 changed files with 182 additions and 4 deletions
|
|
@ -10,10 +10,16 @@ static HParseResult* parse_end(void *env, HParseState *state) {
|
|||
}
|
||||
}
|
||||
|
||||
static bool end_ctrvm(HRVMProg *prog, void *env) {
|
||||
h_rvm_insert_insn(prog, RVM_EOF, 0);
|
||||
return true;
|
||||
}
|
||||
|
||||
static const HParserVtable end_vt = {
|
||||
.parse = parse_end,
|
||||
.isValidRegular = h_true,
|
||||
.isValidCF = h_true,
|
||||
.compile_to_rvm = end_ctrvm,
|
||||
};
|
||||
|
||||
const HParser* h_end_p() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue