810 |
PARSE_ERR(@3, (String("Array variable '") + name + "' accessed with non integer expression.").c_str()); |
PARSE_ERR(@3, (String("Array variable '") + name + "' accessed with non integer expression.").c_str()); |
811 |
else if ($3->asInt()->unitType()) |
else if ($3->asInt()->unitType()) |
812 |
PARSE_ERR(@3, "Unit types are not allowed as array index."); |
PARSE_ERR(@3, "Unit types are not allowed as array index."); |
813 |
else if ($6->exprType() != var->exprType()) |
else if ($6->exprType() != scalarTypeOfArray(var->exprType())) |
814 |
PARSE_ERR(@5, (String("Variable '") + name + "' was declared as " + typeStr(var->exprType()) + ", assigned expression is " + typeStr($6->exprType()) + " though.").c_str()); |
PARSE_ERR(@5, (String("Variable '") + name + "' was declared as " + typeStr(var->exprType()) + ", assigned expression is " + typeStr($6->exprType()) + " though.").c_str()); |
815 |
else if ($6->asNumber()->unitType()) |
else if ($6->asNumber()->unitType()) |
816 |
PARSE_ERR(@6, "Unit types are not allowed for array variables."); |
PARSE_ERR(@6, "Unit types are not allowed for array variables."); |