Add printc and exit builtin functions
This commit is contained in:
@@ -36,6 +36,8 @@ allocate MachineConfiguration{..} = fmap function
|
||||
SubtractionQuadruple (operand operand1) (operand operand2) (Store temporaryRegister)
|
||||
quadruple (NegationQuadruple operand1 _) =
|
||||
NegationQuadruple (operand operand1) (Store temporaryRegister)
|
||||
quadruple (ProductQuadruple operand1 operand2 _) =
|
||||
ProductQuadruple (operand operand1) (operand operand2) (Store temporaryRegister)
|
||||
operand :: Operand Variable -> Operand (Store r)
|
||||
operand (IntOperand x) = IntOperand x
|
||||
operand (VariableOperand _) = VariableOperand (Store temporaryRegister)
|
||||
|
||||
Reference in New Issue
Block a user