OPTIONを実装
This commit is contained in:
@@ -42,6 +42,7 @@ enum NodeType
|
||||
On,
|
||||
Input,
|
||||
RepeatUntil,
|
||||
Option,
|
||||
}
|
||||
abstract class Node
|
||||
{
|
||||
@@ -578,3 +579,14 @@ class RepeatUntil : Statement
|
||||
this.statements = statements;
|
||||
}
|
||||
}
|
||||
|
||||
class Option : Statement
|
||||
{
|
||||
wstring argument;
|
||||
this(wstring arg, SourceLocation loc)
|
||||
{
|
||||
super.location = loc;
|
||||
this.type = NodeType.Option;
|
||||
argument = arg;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user