Regex rewrite for big speed gain, some extras (--no-c-compile), -O2 is default now

This commit is contained in:
Nathan Braswell
2016-08-02 01:33:16 -07:00
parent 523526f40e
commit b0d2a6918d
3 changed files with 101 additions and 58 deletions

View File

@@ -912,7 +912,12 @@ obj ast_transformation (Object) {
}
if (!possible_value)
error(node, concat_symbol_tree(node) + ": HAS NO POSSIBLE FUNCTION OR FUNCTION TEMPLATE SOLUTIONS\nlooking for: " +
concat_symbol_tree(node->children[0]) + "(" + searching_for.function.reduce(fun(n:*type, s:string):string return s+","+n->to_string();, string()) + ")")
concat_symbol_tree(node->children[0]) + "(" + searching_for.function.reduce(fun(n:*type, s:string):string {
if (n)
return s+","+n->to_string()
else
return s+",null"
}, string()) + ")")
return possible_value
} else if (node->children.size == 2) {
var template_inst = get_node("template_inst", node)