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/Compile/Export.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/GF/Compile') diff --git a/src/compiler/GF/Compile/Export.hs b/src/compiler/GF/Compile/Export.hs index c86c9dd03..e1895feb0 100644 --- a/src/compiler/GF/Compile/Export.hs +++ b/src/compiler/GF/Compile/Export.hs @@ -36,6 +36,8 @@ exportPGF opts fmt pgf = case fmt of FmtPGFPretty -> multi "txt" (render . ppPGF) FmtCanonicalGF -> [] -- canon "gf" (render80 . abstract2canonical) + FmtCanonicalJson-> [] + FmtCanonicalYaml-> [] FmtJavaScript -> multi "js" pgf2js FmtPython -> multi "py" pgf2python FmtHaskell -> multi "hs" (grammar2haskell opts name) -- cgit v1.2.3