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

View File

@@ -54,6 +54,8 @@ enum TokenType
RBracket,//] RBracket,//]
Def, Def,
Out, Out,
While,
Wend,
} }
struct Token struct Token