REPEAT~UNTILを実装
This commit is contained in:
1 parent
3e2cb7b8a7
commit
2f50fc5ba9
5 files changed
+103
-22
No files matched your search
@@ -41,6 +41,7 @@ enum NodeType
|
||||
Restore,
|
||||
On,
|
||||
Input,
|
||||
RepeatUntil,
|
||||
}
|
||||
abstract class Node
|
||||
{
|
||||
@@ -564,3 +565,16 @@ class Input : Statement
|
||||
variables ~= lvalue;
|
||||
}
|
||||
}
|
||||
|
||||
class RepeatUntil : Statement
|
||||
{
|
||||
Expression condExpression;
|
||||
Statements statements;
|
||||
this(Expression condExpression, Statements statements, SourceLocation loc)
|
||||
{
|
||||
super.location = loc;
|
||||
this.type = NodeType.RepeatUntil;
|
||||
this.condExpression = condExpression;
|
||||
this.statements = statements;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user