OPTIONを実装

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

No files matched your search

+12
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;
}
}