From bfd414554d2bb114baa8acc176744d55367eabb3 Mon Sep 17 00:00:00 2001 From: "kr.angelov" Date: Mon, 1 Sep 2014 14:51:20 +0000 Subject: partial implementation for recursive def rules --- src/runtime/haskell/PGF/Binary.hs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/runtime/haskell/PGF/Binary.hs') diff --git a/src/runtime/haskell/PGF/Binary.hs b/src/runtime/haskell/PGF/Binary.hs index b2bfda069..b5c301e3b 100644 --- a/src/runtime/haskell/PGF/Binary.hs +++ b/src/runtime/haskell/PGF/Binary.hs @@ -149,9 +149,11 @@ instance Binary Instr where put (PUT_FLT d) = putWord8 10 >> put d put (SET_VALUE n) = putWord8 11 >> put n put (SET_VARIABLE n) = putWord8 12 >> put n - put (TAIL_CALL id) = putWord8 13 >> put id - put (FAIL ) = putWord8 14 - put (RET n) = putWord8 15 >> put n + put (PUSH_VALUE n)= putWord8 13 >> put n + put (PUSH_VARIABLE n)= putWord8 14 >> put n + put (TAIL_CALL id) = putWord8 15 >> put id + put (FAIL ) = putWord8 16 + put (RET n) = putWord8 17 >> put n instance Binary Type where -- cgit v1.2.3