Fix assign
This commit is contained in:
@@ -44,6 +44,7 @@ enum NodeType
|
||||
RepeatUntil,
|
||||
Option,
|
||||
Swap,
|
||||
AssignRef,
|
||||
}
|
||||
abstract class Node
|
||||
{
|
||||
@@ -221,6 +222,18 @@ class Assign : Statement
|
||||
this.expression = expr;
|
||||
}
|
||||
}
|
||||
class AssignRef : Statement
|
||||
{
|
||||
Expression left;
|
||||
Expression expression;
|
||||
this(Expression left, Expression expr, SourceLocation loc)
|
||||
{
|
||||
super.location = loc;
|
||||
this.type = NodeType.AssignRef;
|
||||
this.left = left;
|
||||
this.expression = expr;
|
||||
}
|
||||
}
|
||||
class Label : Statement
|
||||
{
|
||||
wstring label;
|
||||
|
||||
Reference in New Issue
Block a user