fixed several small issues
This commit is contained in:
@ -365,11 +365,12 @@ sblock:
|
||||
}
|
||||
statement_list
|
||||
{
|
||||
$<tn>$ = $3;
|
||||
//$<tn>$ = $3;
|
||||
printdebug("Moving up a scope after seeing sblock");
|
||||
cur = getParent(cur);
|
||||
}
|
||||
R_BRACE
|
||||
{$$ = $3;}
|
||||
|
||||
| L_BRACE
|
||||
{
|
||||
@ -390,9 +391,10 @@ sblock:
|
||||
{
|
||||
printdebug("Moving up a scope after seeing sblock with dblock");
|
||||
cur = getParent(cur);
|
||||
$<tn>$ = $5;
|
||||
//$<tn>$ = $5;
|
||||
}
|
||||
R_BRACE
|
||||
{$$ = $5;}
|
||||
;
|
||||
|
||||
|
||||
@ -880,7 +882,8 @@ assignable:
|
||||
if (getNumArrDim(look_up(getParent(cur), getName((TableNode*)$1))) != $<integ>2) {
|
||||
printdebug("expected %d arguments but had %d at line %d and column %d\n", getNumArrDim(look_up(cur, getName((TableNode*)$1))), $<integ>2, @2.first_line, @2.first_column);
|
||||
}
|
||||
$$ = getArrType(look_up(getParent(cur), getName((TableNode*)$1)));
|
||||
$$ = getArrType(look_up(cur, getName((TableNode*)$1)));
|
||||
printdebug("[ASSIGNABLE - RULE 2] assignable = type: %s | name_func = %s", getName((TableNode*)$$), getName((TableNode*)$1));
|
||||
printdebug("[ASSIGNABLE - RULE 2] assignable = type: %s | name_func = %s", getName((TableNode*)$$), getName((TableNode*)$1));
|
||||
}
|
||||
cur = getParent(cur);
|
||||
|
Reference in New Issue
Block a user