1
0

OPTIONを実装

This commit is contained in:
otya128
2016-09-02 20:57:36 +09:00
parent 2f50fc5ba9
commit 1bfb655e74
4 changed files with 64 additions and 2 deletions

View File

@@ -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;
}
}