From ac288386c44bdfab783ae2cdc0882d411a9c6b00 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Tue, 14 Oct 2014 11:15:18 +0000 Subject: the compiler now allows + to be used as a floating point addition in the abstract syntax --- src/runtime/haskell/PGF/ByteCode.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/runtime/haskell/PGF/ByteCode.hs') diff --git a/src/runtime/haskell/PGF/ByteCode.hs b/src/runtime/haskell/PGF/ByteCode.hs index 393efa5b9..ababdde0d 100644 --- a/src/runtime/haskell/PGF/ByteCode.hs +++ b/src/runtime/haskell/PGF/ByteCode.hs @@ -28,6 +28,7 @@ data Instr | EVAL IVal TailInfo | DROP {-# UNPACK #-} !Int {-# UNPACK #-} !CodeLabel | FAIL + | ADD data IVal = HEAP {-# UNPACK #-} !Int @@ -61,6 +62,7 @@ ppInstr (PUSH v) = text "PUSH " <+> ppIVal v ppInstr (EVAL v ti) = text "EVAL " <+> ppIVal v <+> ppTailInfo ti ppInstr (DROP n l ) = text "DROP " <+> int n <+> ppLabel l ppInstr (FAIL ) = text "FAIL" +ppInstr (ADD ) = text "ADD" ppIVal (HEAP n) = text "hp" <> parens (int n) ppIVal (ARG_VAR n) = text "stk" <> parens (int n) -- cgit v1.2.3