INC,DECのパース
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user