INC,DECのパース
This commit is contained in:
1 parent
ccfb25751b
commit
8c140956cb
4 files changed
+57
-3
No files matched your search
@@ -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