Missed a change last time - also made all_types in function_value_lower a hash_set for a ~20 sec speedup

This commit is contained in:
Nathan Braswell
2017-10-23 09:50:18 -04:00
parent 13f1e9df89
commit 48b21c54ae
4 changed files with 26 additions and 9 deletions

View File

@@ -128,8 +128,9 @@ fun main(argc: int, argv: **char):int {
var line = get_line(string("> "), 100)
if (line == "end")
return 0
var trimmed_parse = trim(parse1.parse_input(line, string("stdin")))
var ast_expression = ast_pass.transform_expression(trimmed_parse, scope, map<string, *type>())
var parse = parse1.parse_input(line, string("stdin"))
trim(parse)
var ast_expression = ast_pass.transform_expression(parse, scope, map<string, *type>())
print_value(evaluate_constant_expression(ast_expression))
/*print_value(evaluate_with_globals(ast_expression, &globals))*/
}