in progress implementing the block
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
38e7d85312
commit
d5c47e5a9a
@ -4111,6 +4111,12 @@ redo:
|
|||||||
if (compile_cons_mlist_expression(hcl, oprnd, 0) <= -1) return -1;
|
if (compile_cons_mlist_expression(hcl, oprnd, 0) <= -1) return -1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case HCL_CONCODE_BLOCK:
|
||||||
|
/* TODO: not implemented yet */
|
||||||
|
hcl_setsynerrbfmt (hcl, HCL_SYNERR_INTERN, HCL_CNODE_GET_LOC(oprnd), HCL_NULL, "internal error - block not implemented");
|
||||||
|
return -1;
|
||||||
|
break;
|
||||||
|
|
||||||
case HCL_CONCODE_ARRAY:
|
case HCL_CONCODE_ARRAY:
|
||||||
if (compile_cons_array_expression(hcl, oprnd) <= -1) return -1;
|
if (compile_cons_array_expression(hcl, oprnd) <= -1) return -1;
|
||||||
break;
|
break;
|
||||||
|
@ -1152,9 +1152,13 @@ static int feed_process_token (hcl_t* hcl)
|
|||||||
|
|
||||||
goto ok;
|
goto ok;
|
||||||
|
|
||||||
|
case HCL_TOK_SEMICOLON:
|
||||||
|
/* TODO: */
|
||||||
|
goto ok;
|
||||||
|
|
||||||
case HCL_TOK_RPAREN: /* xlist (), qlist #() */
|
case HCL_TOK_RPAREN: /* xlist (), qlist #() */
|
||||||
case HCL_TOK_RBRACK: /* bytearray #[], array [] */
|
case HCL_TOK_RBRACK: /* bytearray #[], array [] */
|
||||||
case HCL_TOK_RBRACE: /* dictionary #{} */
|
case HCL_TOK_RBRACE: /* dictionary #{}, block {} */
|
||||||
{
|
{
|
||||||
static struct
|
static struct
|
||||||
{
|
{
|
||||||
@ -1164,6 +1168,7 @@ static int feed_process_token (hcl_t* hcl)
|
|||||||
{
|
{
|
||||||
{ HCL_TOK_RPAREN, HCL_SYNERR_RPAREN }, /* XLIST ( ) */
|
{ HCL_TOK_RPAREN, HCL_SYNERR_RPAREN }, /* XLIST ( ) */
|
||||||
{ HCL_TOK_RPAREN, HCL_SYNERR_RPAREN }, /* MLIST (: ) */
|
{ HCL_TOK_RPAREN, HCL_SYNERR_RPAREN }, /* MLIST (: ) */
|
||||||
|
{ HCL_TOK_RBRACE, HCL_SYNERR_RBRACE }, /* BLOCK { } */
|
||||||
{ HCL_TOK_RBRACK, HCL_SYNERR_RBRACK }, /* ARRAY [ ] */
|
{ HCL_TOK_RBRACK, HCL_SYNERR_RBRACK }, /* ARRAY [ ] */
|
||||||
{ HCL_TOK_RBRACK, HCL_SYNERR_RBRACK }, /* BYTEARRAY #[ ] */
|
{ HCL_TOK_RBRACK, HCL_SYNERR_RBRACK }, /* BYTEARRAY #[ ] */
|
||||||
{ HCL_TOK_RBRACE, HCL_SYNERR_RBRACE }, /* DIC #{ } */
|
{ HCL_TOK_RBRACE, HCL_SYNERR_RBRACE }, /* DIC #{ } */
|
||||||
|
Loading…
Reference in New Issue
Block a user