diff options
| author | aarne <unknown> | 2004-03-31 12:30:34 +0000 |
|---|---|---|
| committer | aarne <unknown> | 2004-03-31 12:30:34 +0000 |
| commit | 3f9b4e7855cf4594708a9fbad194c89540d2cf1e (patch) | |
| tree | 33dcbbd6d2e6e5f6290a25f65b4b9f90253fd34b /src/GF/CF/PPrCF.hs | |
| parent | 6719aedde34c3a4f0ccb78931968c6fe490b3282 (diff) | |
Added support for cf and ebnf formats
Diffstat (limited to 'src/GF/CF/PPrCF.hs')
| -rw-r--r-- | src/GF/CF/PPrCF.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/GF/CF/PPrCF.hs b/src/GF/CF/PPrCF.hs index 6712c45f3..a797daace 100644 --- a/src/GF/CF/PPrCF.hs +++ b/src/GF/CF/PPrCF.hs @@ -52,7 +52,7 @@ getCFRule :: String -> String -> Err CFRule getCFRule mo s = getcf (wrds s) where getcf ww | length ww > 2 && ww !! 2 `elem` ["->", "::="] = Ok (string2CFFun mo (init fun), (string2CFCat mo cat, map mkIt its)) where - fun : cat : _ : its = words s + fun : cat : _ : its = ww mkIt ('"':w@(_:_)) = atomCFTerm (string2CFTok (init w)) mkIt w = CFNonterm (string2CFCat mo w) getcf _ = Bad (" invalid rule:" +++ s) |
