1
0
forked from GitHub/gf-core

fix the grammar serialization for nonExist and BIND

This commit is contained in:
kr.angelov
2013-10-21 10:03:43 +00:00
parent 2ada3ff73a
commit 8103703858

View File

@@ -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