diff options
| author | peb <unknown> | 2005-03-29 10:17:53 +0000 |
|---|---|---|
| committer | peb <unknown> | 2005-03-29 10:17:53 +0000 |
| commit | 67aa6e7a81d8d22ff8409ed59fab7bacde2312a6 (patch) | |
| tree | 1759bd8e1b314e2b98ffb0a6116e2a1fb515908d /src/GF/UseGrammar/Custom.hs | |
| parent | ccf6017b030fcefd5964979f1b6d55e722616ef7 (diff) | |
"Committed_by_peb"
Diffstat (limited to 'src/GF/UseGrammar/Custom.hs')
| -rw-r--r-- | src/GF/UseGrammar/Custom.hs | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/GF/UseGrammar/Custom.hs b/src/GF/UseGrammar/Custom.hs index 91697af93..4bd5cc435 100644 --- a/src/GF/UseGrammar/Custom.hs +++ b/src/GF/UseGrammar/Custom.hs @@ -5,9 +5,9 @@ -- Stability : (stable) -- Portability : (portable) -- --- > CVS $Date: 2005/03/21 22:40:06 $ +-- > CVS $Date: 2005/03/29 11:17:56 $ -- > CVS $Author: peb $ --- > CVS $Revision: 1.47 $ +-- > CVS $Revision: 1.48 $ -- -- A database for customizable GF shell commands. -- @@ -75,6 +75,8 @@ import qualified GF.Parsing.ParseCF as PCF -- see also customGrammarPrinter import qualified GF.Parsing.ConvertGrammar as Cnv import qualified GF.Printing.PrintParser as Prt +import qualified GF.Data.Assoc as Assoc +import qualified GF.Parsing.ConvertFiniteGFC as Fin import GFC import qualified MkGFC as MC @@ -256,6 +258,9 @@ customGrammarPrinter = ,(strCI "cfg", Prt.prt . Cnv.cfg . statePInfo) ,(strCI "mcfg_show", show . Cnv.mcfg . statePInfo) ,(strCI "cfg_show", show . Cnv.cfg . statePInfo) +-- hack for printing finiteness of grammar categories: + -- ,(strCI "finiteness", Prt.prtAfter "\n" . Assoc.aAssocs . Cnv.fintypes . statePInfo) + ,(strCI "finite", prCanon . Fin.convertGrammar . stateGrammarST) --- also include printing via grammar2syntax! ] ++ moreCustomGrammarPrinter |
