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

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

No files matched your search

+20
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;
}
}