1
0

Fix assign

This commit is contained in:
otya128
2016-12-08 21:38:22 +09:00
parent cc05576862
commit 972b075b0f
3 changed files with 49 additions and 15 deletions

View File

@@ -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;