mirror of
https://github.com/ValKmjolnir/Nasal-Interpreter.git
synced 2026-07-23 11:28:45 +08:00
🚀 add function ghosttype
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user