mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-20 00:22:51 -06:00
Morphological analysis and glueing.
This commit is contained in:
@@ -79,4 +79,5 @@ oldLexer = map change . L.tokens where
|
||||
(L.PT p (L.TS s)) | elem s new -> (L.PT p (L.TV (init s ++ "Z")))
|
||||
_ -> t
|
||||
new = words $ "abstract concrete interface incomplete " ++
|
||||
"instance out open resource reuse transfer with"
|
||||
"instance out open resource reuse transfer with where"
|
||||
|
||||
|
||||
@@ -76,11 +76,11 @@ renameIdentTerm :: Status -> Term -> Err Term
|
||||
renameIdentTerm env@(act,imps) t =
|
||||
errIn ("atomic term" +++ prt t +++ "given" +++ unwords (map (prt . fst) qualifs)) $
|
||||
case t of
|
||||
Vr (IC "Int") -> return $ Q cPredefAbs cInt -- Int and String are predefined cats
|
||||
Vr (IC "String") -> return $ Q cPredefAbs cString
|
||||
Vr c -> do
|
||||
f <- lookupTreeMany prt opens c
|
||||
return $ f c
|
||||
Vr (IC "Int") -> return $ Q cPredefAbs cInt -- Int and String are predefined cats
|
||||
Vr (IC "String") -> return $ Q cPredefAbs cString
|
||||
Cn c -> do
|
||||
f <- lookupTreeMany prt opens c
|
||||
return $ f c
|
||||
|
||||
@@ -133,7 +133,7 @@ updateShellState opts sh (gr,(sgr,rts)) = do
|
||||
canModules = cgr,
|
||||
srcModules = src,
|
||||
cfs = zip concrs cfs,
|
||||
morphos = zip concrs (repeat emptyMorpho),
|
||||
morphos = zip concrs (map (mkMorpho cgr) concrs),
|
||||
gloptions = options (M.allFlags src), ---- canModules
|
||||
readFiles = [ft | ft@(f,_) <- readFiles sh, notInrts f] ++ rts,
|
||||
absCats = csi,
|
||||
|
||||
Reference in New Issue
Block a user