Added Unary Oprator Instruction

This commit is contained in:
Tristan B. Velloza Kildaire 2022-04-12 10:52:18 +02:00
parent 414d9de902
commit 1e202fe788
1 changed files with 19 additions and 0 deletions

View File

@ -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
*