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:
parent
b5628ef6ee
commit
589c1092f3
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue