From 47ac01e4b9502ed573e4847ff563ada2670bd4ba Mon Sep 17 00:00:00 2001 From: Peter Ljunglöf Date: Fri, 8 Feb 2019 09:10:48 +0100 Subject: enable export of canonical grammars to JSON and YAML --- src/compiler/GF/Infra/Option.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler/GF/Infra') 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)"), -- cgit v1.2.3