Whileを植えた

This commit is contained in:
otya128 committed 2015-07-12 12:00:27 +09:00
1 parent f985fbbede
commit d006d1266c
2 files changed
+14

No files matched your search

+12
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;
}
}
+2
View File
@@ -54,6 +54,8 @@ enum TokenType
RBracket,//]
Def,
Out,
While,
Wend,
}
struct Token