summaryrefslogtreecommitdiff
path: root/src/runtime/haskell/PGF/Binary.hs
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2014-09-01 14:51:20 +0000
committerkr.angelov <kr.angelov@gmail.com>2014-09-01 14:51:20 +0000
commitbfd414554d2bb114baa8acc176744d55367eabb3 (patch)
treeaf45ecfb78b0b6377444c96c19604e068fbc38f1 /src/runtime/haskell/PGF/Binary.hs
parent342f6e3797db83a5ca48c179f4c7de436cacdb7d (diff)
partial implementation for recursive def rules
Diffstat (limited to 'src/runtime/haskell/PGF/Binary.hs')
-rw-r--r--src/runtime/haskell/PGF/Binary.hs8
1 files changed, 5 insertions, 3 deletions
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