GOTO expr,GOSUB expr実装
This commit is contained in:
@@ -222,6 +222,12 @@ class Goto : Statement
|
||||
this.type = NodeType.Goto;
|
||||
this.label = name;
|
||||
}
|
||||
Expression labelexpr;
|
||||
this(Expression expr)
|
||||
{
|
||||
this.type = NodeType.Goto;
|
||||
this.labelexpr = expr;
|
||||
}
|
||||
}
|
||||
class If : Statement
|
||||
{
|
||||
@@ -271,6 +277,12 @@ class Gosub : Statement
|
||||
this.type = NodeType.Gosub;
|
||||
this.label = name;
|
||||
}
|
||||
Expression labelexpr;
|
||||
this(Expression expr)
|
||||
{
|
||||
this.type = NodeType.Gosub;
|
||||
this.labelexpr = expr;
|
||||
}
|
||||
}
|
||||
class Return : Statement
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user