Instructions

- Made `BinOpInstr`'s left-hand side instruction of type `Value` and right-hand side instruction of type `Value` too
- Doesn't make sense to use anything but `Value`-based instructions for it
This commit is contained in:
Tristan B. Velloza Kildaire 2023-07-10 15:16:28 +02:00
parent b5628ef6ee
commit 589c1092f3
1 changed files with 3 additions and 3 deletions

View File

@ -241,11 +241,11 @@ public final class StringLiteral : Value
*/
public class BinOpInstr : Value
{
public const Instruction lhs;
public const Instruction rhs;
public const Value lhs;
public const Value rhs;
public const SymbolType operator;
this(Instruction lhs, Instruction rhs, SymbolType operator)
this(Value lhs, Value rhs, SymbolType operator)
{
this.lhs = lhs;
this.rhs = rhs;