ON GOTO,GOSUBを定義
This commit is contained in:
1 parent
90a88f1b3a
commit
edbbcf3250
2 files changed
+16
No files matched your search
@@ -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