🚀 add function ghosttype

This commit is contained in:
ValKmjolnir
2023-06-27 22:54:13 +08:00
parent c516c0c3bf
commit e2ec8cb9a0
10 changed files with 2515 additions and 8 deletions
+2 -3
View File
@@ -284,9 +284,8 @@ void parse::params(function* func_node) {
match(tok::lcurve);
while(!lookahead(tok::rcurve)) {
auto param = new parameter(toks[ptr].loc);
auto id_node = id();
param->set_parameter_name(id_node->get_name());
delete id_node;
param->set_parameter_name(toks[ptr].str);
match(tok::id);
if (lookahead(tok::eq)) {
match(tok::eq);
param->set_parameter_type(parameter::param_type::default_parameter);