summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/Export.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/GF/Compile/Export.hs')
-rw-r--r--src/compiler/GF/Compile/Export.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/GF/Compile/Export.hs b/src/compiler/GF/Compile/Export.hs
index cd2f0b7a6..347a1efb7 100644
--- a/src/compiler/GF/Compile/Export.hs
+++ b/src/compiler/GF/Compile/Export.hs
@@ -6,6 +6,7 @@ import GF.Compile.PGFtoHaskell
import GF.Compile.PGFtoProlog
import GF.Compile.PGFtoLProlog
import GF.Compile.PGFtoJS
+import GF.Compile.PGFtoPython
import GF.Infra.Option
import GF.Speech.CFG
import GF.Speech.PGFToCFG
@@ -32,6 +33,7 @@ exportPGF opts fmt pgf =
case fmt of
FmtPGFPretty -> multi "txt" (render . ppPGF)
FmtJavaScript -> multi "js" pgf2js
+ FmtPython -> multi "py" pgf2python
FmtHaskell -> multi "hs" (grammar2haskell opts name)
FmtProlog -> multi "pl" grammar2prolog
FmtProlog_Abs -> multi "pl" grammar2prolog_abs