mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
multimodal resource recreated for new API
This commit is contained in:
@@ -569,7 +569,8 @@ checkLType env trm typ0 = do
|
|||||||
trm' <- comp trm
|
trm' <- comp trm
|
||||||
case trm' of
|
case trm' of
|
||||||
RecType _ -> termWith trm $ return typeType
|
RecType _ -> termWith trm $ return typeType
|
||||||
ExtR (Vr _) (RecType _) -> termWith trm $ return typeType -- ext t = t ** ...
|
ExtR (Vr _) (RecType _) -> termWith trm $ return typeType
|
||||||
|
-- ext t = t ** ...
|
||||||
_ -> prtFail "invalid record type extension" trm
|
_ -> prtFail "invalid record type extension" trm
|
||||||
RecType rr -> do
|
RecType rr -> do
|
||||||
(r',ty,s') <- checks [
|
(r',ty,s') <- checks [
|
||||||
@@ -585,7 +586,14 @@ checkLType env trm typ0 = do
|
|||||||
r2 <- justCheck r' rr0
|
r2 <- justCheck r' rr0
|
||||||
s2 <- justCheck s' rr2
|
s2 <- justCheck s' rr2
|
||||||
return $ (ExtR r2 s2, typ)
|
return $ (ExtR r2 s2, typ)
|
||||||
_ -> raise ("record type expected in extension of" +++ prt r +++ "but found" +++ prt ty)
|
_ -> raise ("record type expected in extension of" +++ prt r +++
|
||||||
|
"but found" +++ prt ty)
|
||||||
|
|
||||||
|
ExtR ty ex -> do
|
||||||
|
r' <- justCheck r ty
|
||||||
|
s' <- justCheck s ex
|
||||||
|
return $ (ExtR r' s', typ) --- is this all?
|
||||||
|
|
||||||
_ -> prtFail "record extension not meaningful for" typ
|
_ -> prtFail "record extension not meaningful for" typ
|
||||||
|
|
||||||
FV vs -> do
|
FV vs -> do
|
||||||
|
|||||||
Reference in New Issue
Block a user