aboutsummaryrefslogtreecommitdiff
path: root/src/repl.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-03 15:01:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-03 15:01:23 -0400
commitcedae3039c8d67568b5ac35833c10cbfc1c7cb23 (patch)
tree1b1ff363a3c2be77d26acfb1a55dd267ec073f3e /src/repl.c
parent59993b85301071540a90a0e97df27e83000f77f7 (diff)
Fix textual representation of table types
Diffstat (limited to 'src/repl.c')
-rw-r--r--src/repl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/repl.c b/src/repl.c
index e4a7b7a4..ae12427a 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -158,7 +158,7 @@ static PUREFUNC void *get_address(env_t *env, ast_t *ast)
if (!b) print_err("No such variable");
return b->value;
}
- default: print_err("Address not implemented for ", ast_to_str(ast));
+ default: print_err("Address not implemented for ", ast_to_xml_str(ast));
}
}
@@ -259,7 +259,7 @@ void run(env_t *env, ast_t *ast)
// type_t *obj_t = get_type(env, index->indexed);
// TypeInfo_t *table_info = type_to_type_info(t);
// }
- default: print_err("Assignment not implemented: ", ast_to_str(target->ast));
+ default: print_err("Assignment not implemented: ", ast_to_xml_str(target->ast));
}
}
break;
@@ -452,7 +452,7 @@ void eval(env_t *env, ast_t *ast, void *dest)
}
break;
}
- default: print_err(1, "Binary op not implemented for ", type_to_str(t), ": ", ast_to_str(ast));
+ default: print_err(1, "Binary op not implemented for ", type_to_str(t), ": ", ast_to_xml_str(ast));
}
break;
}
@@ -541,7 +541,7 @@ void eval(env_t *env, ast_t *ast, void *dest)
break;
}
default:
- print_err("Eval not implemented for ", ast_to_str(ast));
+ print_err("Eval not implemented for ", ast_to_xml_str(ast));
}
}
#ifdef __GNUC__