summaryrefslogtreecommitdiff
path: root/src/GF/UseGrammar/Custom.hs
diff options
context:
space:
mode:
authorbringert <unknown>2005-09-12 15:10:23 +0000
committerbringert <unknown>2005-09-12 15:10:23 +0000
commit01ef25792cb2d50c623c3891aaebe36e96c111db (patch)
treeb561a729405870cc79853da654411dc47d6568a8 /src/GF/UseGrammar/Custom.hs
parentddda900d53ee3b8fa968bc8acb49f035f9ef860c (diff)
Added printer for regular grammars. Changed some foldrs to foldls to improve stack usage.
Diffstat (limited to 'src/GF/UseGrammar/Custom.hs')
-rw-r--r--src/GF/UseGrammar/Custom.hs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/GF/UseGrammar/Custom.hs b/src/GF/UseGrammar/Custom.hs
index 2c6b26a95..e9a72f0f4 100644
--- a/src/GF/UseGrammar/Custom.hs
+++ b/src/GF/UseGrammar/Custom.hs
@@ -5,9 +5,9 @@
-- Stability : (stable)
-- Portability : (portable)
--
--- > CVS $Date: 2005/09/12 15:46:44 $
+-- > CVS $Date: 2005/09/12 16:10:24 $
-- > CVS $Author: bringert $
--- > CVS $Revision: 1.71 $
+-- > CVS $Revision: 1.72 $
--
-- A database for customizable GF shell commands.
--
@@ -57,7 +57,7 @@ import GF.Canon.MkGFC
import GF.CF.CFtoSRG
import GF.Speech.PrGSL (gslPrinter)
import GF.Speech.PrJSGF (jsgfPrinter)
-import GF.Speech.PrSLF (slfPrinter,slfGraphvizPrinter,faGraphvizPrinter)
+import GF.Speech.PrSLF (slfPrinter,slfGraphvizPrinter,faGraphvizPrinter,regularPrinter)
import GF.Data.Zipper
@@ -247,6 +247,7 @@ customGrammarPrinter =
,(strCI "fa_graphviz", \s -> let opts = stateOptions s
name = cncId s
in faGraphvizPrinter name opts $ stateCFG s)
+ ,(strCI "regular", regularPrinter . stateCFG)
,(strCI "plbnf", prLBNF True)
,(strCI "lbnf", prLBNF False)
,(strCI "bnf", prBNF False)