diff options
| author | Peter Ljunglöf <peter.ljunglof@heatherleaf.se> | 2019-02-08 09:10:48 +0100 |
|---|---|---|
| committer | Peter Ljunglöf <peter.ljunglof@heatherleaf.se> | 2019-02-08 09:10:48 +0100 |
| commit | 47ac01e4b9502ed573e4847ff563ada2670bd4ba (patch) | |
| tree | 1b832dd8464ea3ba06200c66f1dd6e93c10923f5 /src/compiler/GF/Compile | |
| parent | a0c1da2548ac1a6395e13e681cfb08ca02550ff8 (diff) | |
enable export of canonical grammars to JSON and YAML
Diffstat (limited to 'src/compiler/GF/Compile')
| -rw-r--r-- | src/compiler/GF/Compile/Export.hs | 2 |
1 files changed, 2 insertions, 0 deletions
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) |
