1
0

ON GOTO,GOSUB実装.

This commit is contained in:
otya128
2015-08-19 00:11:19 +09:00
parent edbbcf3250
commit b259ee9d27
6 changed files with 190 additions and 2 deletions

View File

@@ -451,12 +451,15 @@ class Data : Statement
}
class On : Statement
{
Expression condition;
bool isGosub;
wstring[] labels;
this(bool isgosub)
this(Expression expr, bool isgosub)
{
this.condition = expr;
this.isGosub = isgosub;
this.labels = new wstring[0];
this.type = NodeType.On;
}
void addLabel(wstring label)
{