1
0
forked from GitHub/gf-core

debugging testgf3

This commit is contained in:
aarne
2008-03-05 18:59:14 +00:00
parent 674b4765e6
commit fe86395853
5 changed files with 20 additions and 11 deletions

View File

@@ -203,8 +203,10 @@ checkCompleteGrammar abs cnc = do
checkResInfo :: GF -> Ident -> Ident -> Judgement -> Check Judgement
checkResInfo gr mo c info = do
---- checkReservedId c
trace (show info) (return ())
case jform info of
JOper -> chIn "operation" $ case (jtype info, jdef info) of
_ | isConstructor info -> return info
(_,Meta _) -> do
checkWarn "No definition given to oper"
return info
@@ -698,6 +700,7 @@ getOverload env@gr mt t = case appForm t of
checkLType :: GF -> Term -> Type -> Check (Term, Type)
checkLType env trm typ0 = do
trace (show trm) (return ())
typ <- comp typ0

View File

@@ -34,9 +34,12 @@ batchCompile opts files = do
-- to output an intermediate stage
intermOut :: Options -> Option -> String -> IOE ()
intermOut opts opt s = if oElem opt opts then
ioeIO (putStrLn ("\n\n--#" +++ prOpt opt) >> putStrLn s)
else return ()
intermOut opts opt s =
if oElem opt opts || oElem (iOpt "show_all") opts
then
ioeIO (putStrLn ("\n\n--#" +++ prOpt opt) >> putStrLn s)
else
return ()
prMod :: SourceModule -> String
prMod = prModule