From deec2d4ecfb0af850f4fcf7ce0e14ddcd8baf1ac Mon Sep 17 00:00:00 2001 From: "peter.ljunglof" Date: Mon, 25 Jun 2012 14:16:24 +0000 Subject: Export PGF in Python format --- src/compiler/GF/Infra/Option.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/GF/Infra') 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)"), -- cgit v1.2.3