1
0

INC,DECのパース

This commit is contained in:
otya128
2015-07-12 12:47:15 +09:00
parent ccfb25751b
commit 8c140956cb
4 changed files with 57 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ enum NodeType
ArrayAssign,
DefineFunction,
While,
Inc,
}
abstract class Node
{
@@ -420,3 +421,13 @@ class While : Statement
this.statements = statements;
}
}
class Inc : Statement
{
wstring name;
Expression expression;
this(wstring name, Expression expr)
{
this.name = name;
this.expression = expr;
}
}