summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Infra
diff options
context:
space:
mode:
authorPeter Ljunglöf <peter.ljunglof@heatherleaf.se>2019-02-08 09:10:48 +0100
committerPeter Ljunglöf <peter.ljunglof@heatherleaf.se>2019-02-08 09:10:48 +0100
commit47ac01e4b9502ed573e4847ff563ada2670bd4ba (patch)
tree1b832dd8464ea3ba06200c66f1dd6e93c10923f5 /src/compiler/GF/Infra
parenta0c1da2548ac1a6395e13e681cfb08ca02550ff8 (diff)
enable export of canonical grammars to JSON and YAML
Diffstat (limited to 'src/compiler/GF/Infra')
-rw-r--r--src/compiler/GF/Infra/Option.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/GF/Infra/Option.hs b/src/compiler/GF/Infra/Option.hs
index bd65db2f6..832c37115 100644
--- a/src/compiler/GF/Infra/Option.hs
+++ b/src/compiler/GF/Infra/Option.hs
@@ -88,6 +88,8 @@ data Phase = Preproc | Convert | Compile | Link
data OutputFormat = FmtPGFPretty
| FmtCanonicalGF
+ | FmtCanonicalJson
+ | FmtCanonicalYaml
| FmtJavaScript
| FmtPython
| FmtHaskell
@@ -470,6 +472,8 @@ outputFormatsExpl :: [((String,OutputFormat),String)]
outputFormatsExpl =
[(("pgf_pretty", FmtPGFPretty),"human-readable pgf"),
(("canonical_gf", FmtCanonicalGF),"Canonical GF source files"),
+ (("canonical_json", FmtCanonicalJson),"Canonical JSON source files"),
+ (("canonical_yaml", FmtCanonicalYaml),"Canonical YAML source files"),
(("js", FmtJavaScript),"JavaScript (whole grammar)"),
(("python", FmtPython),"Python (whole grammar)"),
(("haskell", FmtHaskell),"Haskell (abstract syntax)"),