added some code to handle local variable declaration

This commit is contained in:
2016-10-01 04:36:48 +00:00
parent 55a5d2c3c6
commit bdfc72d48d
8 changed files with 374 additions and 131 deletions

View File

@ -255,6 +255,7 @@ struct hcl_iotok_t
HCL_IOTOK_BAPAREN,
HCL_IOTOK_LBRACK,
HCL_IOTOK_RBRACK,
HCL_IOTOK_VBAR,
HCL_IOTOK_INCLUDE
} type;
@ -337,9 +338,19 @@ struct hcl_compiler_t
hcl_oop_t s; /* stack for reading */
hcl_oop_t e; /* last object read */
hcl_oow_t balit_capa;
hcl_oow_t balit_count;
hcl_oob_t* balit;
struct
{
hcl_oob_t* ptr;
hcl_oow_t size;
hcl_oow_t capa;
} balit;
struct
{
hcl_oop_t* ptr;
hcl_oow_t size;
hcl_oow_t capa;
} salit;
} r; /* reading */
/* == END READER == */