INC,DECのパース

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

No files matched your search

+11
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;
}
}