mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
interpret "foo bar" as ["foo bar"], silently
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user