1
0
forked from GitHub/gf-core

Export PGF in Python format

This commit is contained in:
peter.ljunglof
2012-06-25 14:16:24 +00:00
parent 98a967a173
commit deec2d4ecf
3 changed files with 112 additions and 0 deletions

View File

@@ -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)"),