1
0

OUT関数を実装, 識別子に数字と_を認識するように修正

This commit is contained in:
otya128
2015-06-14 11:13:19 +09:00
parent b8a063f0a5
commit c71e84a7fc
6 changed files with 187 additions and 12 deletions

View File

@@ -388,3 +388,23 @@ class DefineFunction : Statement
this.outArguments ~= name;
}
}
class CallFunctionStatement : Statement
{
wstring name;
Expression[] args;
wstring[] outVariable;
this(wstring n)
{
this.type = NodeType.CallFunctionStatement;
this.name = n;
args = new Expression[0];
}
void addArg(Expression arg)
{
args ~= arg;
}
void addOut(wstring var)
{
outVariable ~= var;
}
}