wrote more code to support classes

This commit is contained in:
2021-06-25 15:19:11 +00:00
parent 5cd8bc15ed
commit 2fbb2eda6c
6 changed files with 403 additions and 112 deletions

View File

@ -380,6 +380,13 @@ struct hcl_cframe_t
{
hcl_ooi_t jump_inst_pos;
} _break;
/* COP_COMPILE_CLASS_P1, COP_COMPILE_CLASS_P2 */
struct
{
hcl_ooi_t nsuperclasses;
hcl_ioloc_t start_loc;
} _class;
} u;
};
typedef struct hcl_cframe_t hcl_cframe_t;
@ -448,7 +455,6 @@ struct hcl_rstl_t
hcl_rstl_t* prev;
};
struct hcl_compiler_t
{
/* output handler */