summaryrefslogtreecommitdiff
path: root/src-3.0
diff options
context:
space:
mode:
authoraarne <aarne@cs.chalmers.se>2008-05-29 16:16:19 +0000
committeraarne <aarne@cs.chalmers.se>2008-05-29 16:16:19 +0000
commit2505bfc892ed4b2c7f5444be0c8295de121f84b0 (patch)
treed9d00d6a547d42e699ab008a0fca5a0180109497 /src-3.0
parent96bdd18dc3822acf307129bc8348ba7ace563807 (diff)
fixing number of interrogatives in English Structural
Diffstat (limited to 'src-3.0')
-rw-r--r--src-3.0/GF/Compile/CheckGrammar.hs12
-rw-r--r--src-3.0/GF/Grammar/PrGrammar.hs2
2 files changed, 2 insertions, 12 deletions
diff --git a/src-3.0/GF/Compile/CheckGrammar.hs b/src-3.0/GF/Compile/CheckGrammar.hs
index a474637f4..e47496e97 100644
--- a/src-3.0/GF/Compile/CheckGrammar.hs
+++ b/src-3.0/GF/Compile/CheckGrammar.hs
@@ -336,9 +336,7 @@ computeLType gr t = do
where
comp ty = case ty of
_ | Just _ <- isTypeInts ty -> return ty ---- shouldn't be needed
- | ty == typeInt -> return ty ---- shouldn't be needed
- | ty == typeFloat -> return ty ---- shouldn't be needed
- | ty == typeError -> return ty ---- shouldn't be needed
+ | isPredefConstant ty -> return ty ---- shouldn't be needed
Q m ident -> checkIn ("module" +++ prt m) $ do
ty' <- checkErr (lookupResDef gr m ident)
@@ -409,14 +407,6 @@ inferLType gr trm = case trm of
,
checkErr (lookupResDef gr m ident) >>= infer
,
-{-
- do
- over <- getOverload gr Nothing trm
- case over of
- Just trty -> return trty
- _ -> prtFail "not overloaded" trm
- ,
--}
prtFail "cannot infer type of constant" trm
]
diff --git a/src-3.0/GF/Grammar/PrGrammar.hs b/src-3.0/GF/Grammar/PrGrammar.hs
index 9867aaef5..1b824da32 100644
--- a/src-3.0/GF/Grammar/PrGrammar.hs
+++ b/src-3.0/GF/Grammar/PrGrammar.hs
@@ -245,7 +245,7 @@ prRefinement t = case t of
prOperSignature :: (QIdent,Type) -> String
prOperSignature (f, t) = prQIdent f +++ ":" +++ prt t
--- to look up a constant etc in a search tree
+-- to look up a constant etc in a search tree --- why here? AR 29/5/2008
lookupIdent :: Ident -> BinTree Ident b -> Err b
lookupIdent c t = case lookupTree prt c t of