mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-22 15:43:11 -06:00
finalizing experiments with Finnish nouns
This commit is contained in:
1 parent
934d4dbd7c
commit
d550049873
10 files changed
+33
-10
No files matched your search
@@ -613,6 +613,7 @@ inferLType gr trm = case trm of
|
||||
PString _ -> True
|
||||
PInt _ -> True
|
||||
PFloat _ -> True
|
||||
PChar -> True
|
||||
PSeq p q -> isConstPatt p && isConstPatt q
|
||||
PAlt p q -> isConstPatt p && isConstPatt q
|
||||
PRep p -> isConstPatt p
|
||||
@@ -626,6 +627,7 @@ inferLType gr trm = case trm of
|
||||
PNeg p -> inferPatt p
|
||||
PAlt p q -> checks [inferPatt p, inferPatt q]
|
||||
PSeq _ _ -> return $ typeStr
|
||||
PChar -> return $ typeStr
|
||||
PRep _ -> return $ typeStr
|
||||
_ -> infer (patt2term p) >>= return . snd
|
||||
|
||||
|
||||
Reference in new issue
Block a user