Skip to content

Commit

Permalink
chipi chapa tubi tubi... im idk this song text lol
Browse files Browse the repository at this point in the history
  • Loading branch information
SpGerg committed Jan 21, 2024
1 parent 2739917 commit 63a3fff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Binary file modified Imports/PaganismCustomConsole/Paganism.dll
Binary file not shown.
10 changes: 9 additions & 1 deletion Paganism/PParser/AST/FunctionDeclarateExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,15 @@ public void CreateArguments(params Argument[] arguments)

totalArguments[i] = initArgument;

Variables.Instance.Value.Add(Statement, initArgument.Name, initArgument.Value.Eval());
if (initArgument.Value is FunctionDeclarateExpression functionDeclarateExpression)
{
Variables.Instance.Value.Add(Statement, initArgument.Name, new FunctionValue(functionDeclarateExpression));
Functions.Instance.Value.Add(Statement, initArgument.Name, new FunctionInstance(functionDeclarateExpression));
}
else
{
Variables.Instance.Value.Add(Statement, initArgument.Name, initArgument.Value.Eval());
}
}
}

Expand Down

0 comments on commit 63a3fff

Please sign in to comment.