diff options
| author | krasimir <krasimir@chalmers.se> | 2010-12-14 21:25:43 +0000 |
|---|---|---|
| committer | krasimir <krasimir@chalmers.se> | 2010-12-14 21:25:43 +0000 |
| commit | 505e34aea788db30da26ce852755c5a432038527 (patch) | |
| tree | 59823fc2bb410e9b6c4b239443eb6e10abf82b7b /src | |
| parent | c571e6ef338d0dbce5ce78b1a326cbd2a92fbacb (diff) | |
PGFToCFG should use the full production set because the lexicon is now split out
Diffstat (limited to 'src')
| -rw-r--r-- | src/compiler/GF/Speech/PGFToCFG.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/compiler/GF/Speech/PGFToCFG.hs b/src/compiler/GF/Speech/PGFToCFG.hs index 4b1afa8d6..163f02537 100644 --- a/src/compiler/GF/Speech/PGFToCFG.hs +++ b/src/compiler/GF/Speech/PGFToCFG.hs @@ -37,7 +37,7 @@ pgfToCFG pgf lang = mkCFG (showCId (lookStartCat pgf)) extCats (startRules ++ co cnc = lookConcr pgf lang rules :: [(FId,Production)] - rules = [(fcat,prod) | (fcat,set) <- IntMap.toList (PGF.pproductions cnc) + rules = [(fcat,prod) | (fcat,set) <- IntMap.toList (PGF.productions cnc) , prod <- Set.toList set] fcatCats :: Map FId Cat @@ -58,7 +58,7 @@ pgfToCFG pgf lang = mkCFG (showCId (lookStartCat pgf)) extCats (startRules ++ co topdownRules cat = f cat [] where - f cat rules = maybe rules (Set.fold g rules) (IntMap.lookup cat (pproductions cnc)) + f cat rules = maybe rules (Set.fold g rules) (IntMap.lookup cat (productions cnc)) g (PApply funid args) rules = (cncfuns cnc ! funid,args) : rules g (PCoerce cat) rules = f cat rules |
