summaryrefslogtreecommitdiff
path: root/src/GF/Speech/SRGS_ABNF.hs
diff options
context:
space:
mode:
authorbjorn <bjorn@bringert.net>2008-09-30 11:52:11 +0000
committerbjorn <bjorn@bringert.net>2008-09-30 11:52:11 +0000
commit446aa1b5db35402dbdd0821eec4ea1bbbed7d0f9 (patch)
treec54c17659508ce9252f54622b1ac8878aef0bb77 /src/GF/Speech/SRGS_ABNF.hs
parent794fbd4a416ef53d289545eb83455ee745115fec (diff)
Added --cfg option for specifying which CFG transformations to use. Added startcatonly CFG trasnformation. Removed output formats that are now easily done with --cfg: "regular", "nolr".
Diffstat (limited to 'src/GF/Speech/SRGS_ABNF.hs')
-rw-r--r--src/GF/Speech/SRGS_ABNF.hs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/GF/Speech/SRGS_ABNF.hs b/src/GF/Speech/SRGS_ABNF.hs
index 544628a25..2df1316a8 100644
--- a/src/GF/Speech/SRGS_ABNF.hs
+++ b/src/GF/Speech/SRGS_ABNF.hs
@@ -36,12 +36,13 @@ import Debug.Trace
width :: Int
width = 75
-srgsAbnfPrinter :: Maybe SISRFormat
+srgsAbnfPrinter :: Options
-> PGF -> CId -> String
-srgsAbnfPrinter sisr pgf cnc = showDoc $ prABNF sisr $ makeNonLeftRecursiveSRG pgf cnc
+srgsAbnfPrinter opts pgf cnc = showDoc $ prABNF sisr $ makeNonLeftRecursiveSRG opts pgf cnc
+ where sisr = flag optSISR opts
-srgsAbnfNonRecursivePrinter :: PGF -> CId -> String
-srgsAbnfNonRecursivePrinter pgf cnc = showDoc $ prABNF Nothing $ makeNonRecursiveSRG pgf cnc
+srgsAbnfNonRecursivePrinter :: Options -> PGF -> CId -> String
+srgsAbnfNonRecursivePrinter opts pgf cnc = showDoc $ prABNF Nothing $ makeNonRecursiveSRG opts pgf cnc
showDoc = renderStyle (style { lineLength = width })