diff options
| author | peb <unknown> | 2005-04-18 13:55:32 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-04-18 13:55:32 +0000 |
| commit | c1592825c71867711a63293b588fcbc97e52bfc4 (patch) | |
| tree | 5b042471de94431e15f8fda2c6ff9a85bce99cef /src/GF/Parsing/CFG/PInfo.hs | |
| parent | 1323b7406376c72f40b1e561e079f8824f79aabf (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/Parsing/CFG/PInfo.hs')
| -rw-r--r-- | src/GF/Parsing/CFG/PInfo.hs | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/GF/Parsing/CFG/PInfo.hs b/src/GF/Parsing/CFG/PInfo.hs index 63c506e19..c8bb9af29 100644 --- a/src/GF/Parsing/CFG/PInfo.hs +++ b/src/GF/Parsing/CFG/PInfo.hs @@ -4,9 +4,9 @@ -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date: 2005/04/16 05:40:49 $ +-- > CVS $Date: 2005/04/18 14:55:33 $ -- > CVS $Author: peb $ --- > CVS $Revision: 1.2 $ +-- > CVS $Revision: 1.3 $ -- -- CFG parsing, parser information ----------------------------------------------------------------------------- @@ -51,7 +51,7 @@ buildCFPInfo :: (Ord n, Ord c, Ord t) => CFGrammar c n t -> CFPInfo c n t -- this is not permanent... buildCFPInfo grammar = traceCalcFirst grammar $ - tracePrt "cf parser info" (prt) $ + tracePrt "CFG.PInfo - parser info" (prt) $ pInfo' (filter (not . isCyclic) grammar) pInfo' grammar = CFPInfo grToks nmRules tdRules buRules elcRules emptyCats cyclicCats leftToks @@ -84,14 +84,14 @@ isCyclic _ = False ---------------------------------------------------------------------- instance (Ord n, Ord c, Ord t) => Print (CFPInfo n c t) where - prt pI = "[ tokens=" ++ sl grammarTokens ++ - "; names=" ++ sla nameRules ++ - "; tdCats=" ++ sla topdownRules ++ - "; buCats=" ++ sla bottomupRules ++ - "; elcCats=" ++ sla emptyLeftcornerRules ++ - "; eCats=" ++ sla emptyCategories ++ - "; cCats=" ++ sl cyclicCategories ++ - "; lctokCats=" ++ sla leftcornerTokens ++ + prt pI = "[ nr. tokens=" ++ sl grammarTokens ++ + "; nr. names=" ++ sla nameRules ++ + "; nr. tdCats=" ++ sla topdownRules ++ + "; nr. buCats=" ++ sla bottomupRules ++ + "; nr. elcCats=" ++ sla emptyLeftcornerRules ++ + "; nr. eCats=" ++ sla emptyCategories ++ + "; nr. cCats=" ++ sl cyclicCategories ++ + "; nr. lctokCats=" ++ sla leftcornerTokens ++ " ]" where sla f = show $ length $ aElems $ f pI sl f = show $ length $ f pI |
