mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-09 03:02:50 -06:00
Making cf2gf to work...
This commit is contained in:
@@ -55,7 +55,7 @@ getCFRule mo s = getcf (wrds s) where
|
||||
fun : cat : _ : its = words s
|
||||
mkIt ('"':w@(_:_)) = atomCFTerm (string2CFTok (init w))
|
||||
mkIt w = CFNonterm (string2CFCat mo w)
|
||||
getcf _ = Bad "invalid rule"
|
||||
getcf _ = Bad (" invalid rule:" +++ s)
|
||||
wrds = takeWhile (/= ";") . words -- to permit semicolon in the end
|
||||
|
||||
pCF :: String -> String -> Err CF
|
||||
|
||||
Reference in New Issue
Block a user