Enough interpreter to do math on constant integers

This commit is contained in:
Nathan Braswell
2016-05-13 03:10:36 -04:00
parent 3fe72bc8e2
commit e63b7cf770
6 changed files with 160 additions and 9 deletions

View File

@@ -1178,6 +1178,7 @@ fun get_ast_type(node: *ast_node): *type {
ast_node::cast(backing) return backing.to_type
ast_node::value(backing) return backing.value_type
}
return null<type>()
}
fun ast_to_dot(root: *ast_node): string {