Store the left-hand and right-hand expressions for BinaryOperatorExpression

This commit is contained in:
Tristan B. Velloza Kildaire 2021-06-15 10:48:01 +02:00
parent c8ae0e7ae4
commit c6d0d762e8
1 changed files with 4 additions and 0 deletions

View File

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