mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-23 03:32:51 -06:00
bug fixes: too much reading of files ; lin of variant records
This commit is contained in:
@@ -96,7 +96,8 @@ selectFormat opts env (p,f) = do
|
|||||||
(Just tenv,_,_,Just tgf) | laterModTime tenv tgf -> (CSEnvR,Just tenv)
|
(Just tenv,_,_,Just tgf) | laterModTime tenv tgf -> (CSEnvR,Just tenv)
|
||||||
(_,Just tenv,_,Just tgf) | laterModTime tenv tgf -> (CSEnv, Just tenv)
|
(_,Just tenv,_,Just tgf) | laterModTime tenv tgf -> (CSEnv, Just tenv)
|
||||||
(_,_,Just tgfc,Just tgf) | laterModTime tgfc tgf -> (CSRead,Just tgfc)
|
(_,_,Just tgfc,Just tgf) | laterModTime tgfc tgf -> (CSRead,Just tgfc)
|
||||||
(_,_,_, Nothing) -> (CSRead,Nothing) -- source does not exist
|
(_,Just tenv,_,Nothing) -> (CSEnv,Just tenv) -- source does not exist
|
||||||
|
(_,_,_, Nothing) -> (CSRead,Nothing) -- source does not exist
|
||||||
_ -> (CSComp,Nothing)
|
_ -> (CSComp,Nothing)
|
||||||
return $ (f, (p,stat))
|
return $ (f, (p,stat))
|
||||||
|
|
||||||
|
|||||||
@@ -75,7 +75,8 @@ linearizeToRecord gr mk m = lin [] where
|
|||||||
look = lookupLin gr . redirectIdent m . rtQIdent
|
look = lookupLin gr . redirectIdent m . rtQIdent
|
||||||
comp = ccompute gr
|
comp = ccompute gr
|
||||||
mkBinds bs bdy = case bdy of
|
mkBinds bs bdy = case bdy of
|
||||||
R fs -> R $ [Ass (LV i) (tK (prt t)) | (i,(t,_)) <- zip [0..] bs] ++ fs
|
R fs -> R $ [Ass (LV i) (tK (prt t)) | (i,(t,_)) <- zip [0..] bs] ++ fs
|
||||||
|
FV rs -> FV $ map (mkBinds bs) rs
|
||||||
|
|
||||||
recS t = R [Ass (L (identC "s")) t] ----
|
recS t = R [Ass (L (identC "s")) t] ----
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user