1
0

Whileを植えた

This commit is contained in:
otya128
2015-07-12 12:00:27 +09:00
parent f985fbbede
commit d006d1266c
2 changed files with 14 additions and 0 deletions

View File

@@ -34,6 +34,7 @@ enum NodeType
DefineArray,
ArrayAssign,
DefineFunction,
While,
}
abstract class Node
{
@@ -408,3 +409,14 @@ class CallFunctionStatement : Statement
outVariable ~= var;
}
}
class While : Statement
{
Expression condExpression;
Statements statements;
this(Expression condExpression, Statements statements)
{
this.type = NodeType.While;
this.condExpression = condExpression;
this.statements = statements;
}
}