From af13bae2dfb9adaa7c4aa273961fc09cc7ba1b7a Mon Sep 17 00:00:00 2001 From: krasimir Date: Sun, 17 Jan 2010 17:05:21 +0000 Subject: now the linearization is completely based on PMCFG --- src/runtime/haskell/PGF/Parse.hs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/runtime/haskell/PGF/Parse.hs') diff --git a/src/runtime/haskell/PGF/Parse.hs b/src/runtime/haskell/PGF/Parse.hs index e9936233c..5a4ccc719 100644 --- a/src/runtime/haskell/PGF/Parse.hs +++ b/src/runtime/haskell/PGF/Parse.hs @@ -59,7 +59,7 @@ initState pgf lang (DTyp _ start _) = let items = case Map.lookup start (startCats pinfo) of Just (s,e,labels) -> do cat <- range (s,e) (funid,args) <- foldForest (\funid args -> (:) (funid,args)) (\_ _ args -> args) - [] cat (productions pinfo) + [] cat (pproductions pinfo) let FFun fn lins = functions pinfo ! funid (lbl,seqid) <- assocs lins return (Active 0 0 funid seqid args (AK cat lbl)) @@ -72,7 +72,7 @@ initState pgf lang (DTyp _ start _) = in PState pgf pinfo - (Chart emptyAC [] emptyPC (productions pinfo) (totalCats pinfo) 0) + (Chart emptyAC [] emptyPC (pproductions pinfo) (totalCats pinfo) 0) (TMap.singleton [] (Set.fromList items)) -- | From the current state and the next token -- cgit v1.2.3