interpret "foo bar" as ["foo bar"], silently

This commit is contained in:
aarne
2008-05-24 08:03:42 +00:00
parent f4bafe3d5a
commit 472f6ed14f

View File

@@ -502,10 +502,13 @@ inferLType gr trm = case trm of
K s -> do
if elem ' ' s
then checkWarn ("WARNING: space in token \"" ++ s ++
"\". Lexical analysis may fail.")
else return ()
return (trm, typeStr)
then do
let ss = foldr C Empty (map K (words s))
----- removed irritating warning AR 24/5/2008
----- checkWarn ("WARNING: token \"" ++ s ++
----- "\" converted to token list" ++ prt ss)
return (ss, typeStr)
else return (trm, typeStr)
EInt i -> return (trm, typeInt)