OUT関数を実装, 識別子に数字と_を認識するように修正
This commit is contained in:
1 parent
b8a063f0a5
commit
c71e84a7fc
6 files changed
+187
-12
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user