Added Unary Oprator Instruction
This commit is contained in:
parent
414d9de902
commit
1e202fe788
|
@ -130,6 +130,25 @@ public class BinOpInstr : Value
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* UnaryOpInstr instruction
|
||||
*
|
||||
* Any sort of Unary Operator
|
||||
*/
|
||||
public class UnaryOpInstr : Value
|
||||
{
|
||||
import compiler.symbols.data;
|
||||
private Instruction exp;
|
||||
private SymbolType operator;
|
||||
|
||||
this(Instruction exp, SymbolType operator)
|
||||
{
|
||||
this.exp = exp;
|
||||
|
||||
addInfo = "UnaryOpType: "~to!(string)(operator)~", Instr: "~exp.toString();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 2022 New things
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue