struct growable *scope, char *name, struct scope_value value
) {
size_t i;
- printf("assigning %s value %"PRIdMAX"\n", name, value.u.i);
for (i = 0; i < scope->len; i++) {
if (strcmp(GET_SCOPE_ITEM(*scope, i).name, name) == 0) {
GET_SCOPE_ITEM(*scope, i).value = value;
if (evaluate_arith(p, scope, stmt, UNTIL_SEMICOLON, &value.u.i) < 0)
return -1;
*stmt = value.u.i;
- printf("goto %zu\n", *stmt);
} else {
fprintf(stderr, "Error: canot execute: ");
ast_item_dump(stderr, *item);