mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 11:42:49 -06:00
forgot changes in the serialization in the Haskell runtime
This commit is contained in:
@@ -213,10 +213,10 @@ instance Binary Symbol where
|
|||||||
put (SymKP d vs) = putWord8 4 >> put (d,vs)
|
put (SymKP d vs) = putWord8 4 >> put (d,vs)
|
||||||
put SymBIND = putWord8 5
|
put SymBIND = putWord8 5
|
||||||
put SymSOFT_BIND = putWord8 6
|
put SymSOFT_BIND = putWord8 6
|
||||||
put SymSOFT_SPACE = putWord8 7
|
put SymNE = putWord8 7
|
||||||
put SymCAPIT = putWord8 8
|
put SymSOFT_SPACE = putWord8 8
|
||||||
put SymALL_CAPIT = putWord8 9
|
put SymCAPIT = putWord8 9
|
||||||
put SymNE = putWord8 10
|
put SymALL_CAPIT = putWord8 10
|
||||||
get = do tag <- getWord8
|
get = do tag <- getWord8
|
||||||
case tag of
|
case tag of
|
||||||
0 -> liftM2 SymCat get get
|
0 -> liftM2 SymCat get get
|
||||||
@@ -226,10 +226,10 @@ instance Binary Symbol where
|
|||||||
4 -> liftM2 (\d vs -> SymKP d vs) get get
|
4 -> liftM2 (\d vs -> SymKP d vs) get get
|
||||||
5 -> return SymBIND
|
5 -> return SymBIND
|
||||||
6 -> return SymSOFT_BIND
|
6 -> return SymSOFT_BIND
|
||||||
7 -> return SymSOFT_SPACE
|
7 -> return SymNE
|
||||||
8 -> return SymCAPIT
|
8 -> return SymSOFT_SPACE
|
||||||
9 -> return SymALL_CAPIT
|
9 -> return SymCAPIT
|
||||||
10-> return SymNE
|
10-> return SymALL_CAPIT
|
||||||
_ -> decodingError
|
_ -> decodingError
|
||||||
|
|
||||||
instance Binary PArg where
|
instance Binary PArg where
|
||||||
|
|||||||
@@ -61,11 +61,11 @@ data Symbol
|
|||||||
| SymKS Token
|
| SymKS Token
|
||||||
| SymKP [Symbol] [([Symbol],[String])]
|
| SymKP [Symbol] [([Symbol],[String])]
|
||||||
| SymBIND -- the special BIND token
|
| SymBIND -- the special BIND token
|
||||||
|
| SymNE -- non exist
|
||||||
| SymSOFT_BIND -- the special SOFT_BIND token
|
| SymSOFT_BIND -- the special SOFT_BIND token
|
||||||
| SymSOFT_SPACE -- the special SOFT_SPACE token
|
| SymSOFT_SPACE -- the special SOFT_SPACE token
|
||||||
| SymCAPIT -- the special CAPIT token
|
| SymCAPIT -- the special CAPIT token
|
||||||
| SymALL_CAPIT -- the special ALL_CAPIT token
|
| SymALL_CAPIT -- the special ALL_CAPIT token
|
||||||
| SymNE -- non exist (this should be last constructor to simplify the binary search in the runtime)
|
|
||||||
deriving (Eq,Ord,Show)
|
deriving (Eq,Ord,Show)
|
||||||
data Production
|
data Production
|
||||||
= PApply {-# UNPACK #-} !FunId [PArg]
|
= PApply {-# UNPACK #-} !FunId [PArg]
|
||||||
|
|||||||
Reference in New Issue
Block a user