baby steps

This commit is contained in:
Nathan Braswell
2017-02-04 01:29:22 -05:00
parent 1b0dce9ed1
commit 3fc0ea9bec
2 changed files with 11 additions and 2 deletions

View File

@@ -22,7 +22,7 @@ fun error(source: *tree<symbol>, message: *char) error(source, string(message));
fun error(source: *tree<symbol>, message: string) {
source = get_first_terminal(source)
if (source)
error(source->data.source + ": " + source->data.position + " " + message)
error("***error |" + concat_symbol_tree(source) + "| *** " + source->data.source + ": " + source->data.position + " " + message)
error(message)
}
fun method_in_object(method: *ast_node, enclosing_object: *ast_node): bool {