ON GOTO,GOSUBを定義
This commit is contained in:
@@ -39,6 +39,7 @@ enum NodeType
|
||||
Data,
|
||||
Read,
|
||||
Restore,
|
||||
On,
|
||||
}
|
||||
abstract class Node
|
||||
{
|
||||
@@ -448,3 +449,17 @@ class Data : Statement
|
||||
data ~= v;
|
||||
}
|
||||
}
|
||||
class On : Statement
|
||||
{
|
||||
bool isGosub;
|
||||
wstring[] labels;
|
||||
this(bool isgosub)
|
||||
{
|
||||
this.isGosub = isgosub;
|
||||
this.labels = new wstring[0];
|
||||
}
|
||||
void addLabel(wstring label)
|
||||
{
|
||||
this.labels ~= label;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user