mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-22 09:32:53 -06:00
missing case in PGF generation
This commit is contained in:
@@ -194,6 +194,8 @@ mkCType t = case t of
|
|||||||
Table pt vt -> case pt of
|
Table pt vt -> case pt of
|
||||||
EInt i -> C.R $ replicate (1 + fromInteger i) $ mkCType vt
|
EInt i -> C.R $ replicate (1 + fromInteger i) $ mkCType vt
|
||||||
RecType rs -> mkCType $ foldr Table vt (map snd rs)
|
RecType rs -> mkCType $ foldr Table vt (map snd rs)
|
||||||
|
_ | Just i <- GM.isTypeInts pt -> C.R $ replicate (fromInteger i) $ mkCType vt
|
||||||
|
|
||||||
Sort s | s == cStr -> C.S [] --- Str only
|
Sort s | s == cStr -> C.S [] --- Str only
|
||||||
_ | Just i <- GM.isTypeInts t -> C.C $ fromInteger i
|
_ | Just i <- GM.isTypeInts t -> C.C $ fromInteger i
|
||||||
_ -> error $ "mkCType " ++ show t
|
_ -> error $ "mkCType " ++ show t
|
||||||
|
|||||||
Reference in New Issue
Block a user