Store the left-hand and right-hand expressions for BinaryOperatorExpression
This commit is contained in:
parent
c8ae0e7ae4
commit
c6d0d762e8
|
@ -37,10 +37,14 @@ public class UnaryOperatorExpression : OperatorExpression
|
|||
|
||||
public class BinaryOperatorExpression : OperatorExpression
|
||||
{
|
||||
private Expression lhs, rhs;
|
||||
|
||||
/* TODO: Take in operator */
|
||||
this(SymbolType operator, Expression lhs, Expression rhs)
|
||||
{
|
||||
super(operator);
|
||||
this.lhs = lhs;
|
||||
this.rhs = rhs;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue