summaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorkr.angelov <kr.angelov@gmail.com>2013-10-21 10:03:43 +0000
committerkr.angelov <kr.angelov@gmail.com>2013-10-21 10:03:43 +0000
commit1d2bf1cea88445f97fcc2298716e9ea5da205bf7 (patch)
tree6499afe4b70bab835964957adb8b20f08f168483 /src/runtime
parentdf2e91154c1b6b30c163fd9c6f2cd16e62777786 (diff)
fix the grammar serialization for nonExist and BIND
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/haskell/PGF/Binary.hs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/runtime/haskell/PGF/Binary.hs b/src/runtime/haskell/PGF/Binary.hs
index 3c9dcc265..e293da99c 100644
--- a/src/runtime/haskell/PGF/Binary.hs
+++ b/src/runtime/haskell/PGF/Binary.hs
@@ -148,8 +148,8 @@ instance Binary Symbol where
put (SymVar n l) = putWord8 2 >> put (n,l)
put (SymKS ts) = putWord8 3 >> put ts
put (SymKP d vs) = putWord8 4 >> put (d,vs)
- put SymNE = putWord8 5
- put SymBIND = putWord8 6
+ put SymBIND = putWord8 5
+ put SymNE = putWord8 6
get = do tag <- getWord8
case tag of
0 -> liftM2 SymCat get get
@@ -157,8 +157,8 @@ instance Binary Symbol where
2 -> liftM2 SymVar get get
3 -> liftM SymKS get
4 -> liftM2 (\d vs -> SymKP d vs) get get
- 5 -> return SymNE
- 6 -> return SymBIND
+ 5 -> return SymBIND
+ 6 -> return SymNE
_ -> decodingError
instance Binary PArg where