summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Infra
diff options
context:
space:
mode:
authorpeter.ljunglof <peter.ljunglof@gu.se>2012-06-25 14:16:24 +0000
committerpeter.ljunglof <peter.ljunglof@gu.se>2012-06-25 14:16:24 +0000
commitdeec2d4ecfb0af850f4fcf7ce0e14ddcd8baf1ac (patch)
tree8765ee9f9bcf1d9a845ba63c134055df056e7d7f /src/compiler/GF/Infra
parent98a967a173a0d42e9382b2076a35f0217d33a85d (diff)
Export PGF in Python format
Diffstat (limited to 'src/compiler/GF/Infra')
-rw-r--r--src/compiler/GF/Infra/Option.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/GF/Infra/Option.hs b/src/compiler/GF/Infra/Option.hs
index 85088cba3..75d0c33c6 100644
--- a/src/compiler/GF/Infra/Option.hs
+++ b/src/compiler/GF/Infra/Option.hs
@@ -85,6 +85,7 @@ data Phase = Preproc | Convert | Compile | Link
data OutputFormat = FmtPGFPretty
| FmtJavaScript
+ | FmtPython
| FmtHaskell
| FmtProlog
| FmtProlog_Abs
@@ -432,6 +433,7 @@ outputFormatsExpl :: [((String,OutputFormat),String)]
outputFormatsExpl =
[(("pgf_pretty", FmtPGFPretty),"human-readable pgf"),
(("js", FmtJavaScript),"JavaScript (whole grammar)"),
+ (("python", FmtPython),"Python (whole grammar)"),
(("haskell", FmtHaskell),"Haskell (abstract syntax)"),
(("prolog", FmtProlog),"Prolog (whole grammar)"),
(("prolog_abs", FmtProlog_Abs),"Prolog (abstract syntax)"),