diff options
| author | Thomas H <Thomas-H@users.noreply.github.com> | 2019-02-21 14:26:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-21 14:26:11 +0100 |
| commit | b6fd9a7744dd170950d7ffb654c11b036564fb81 (patch) | |
| tree | e8dceb47c970e0431e65a9992053f3dbdd28305e /src/compiler/GF/Compile | |
| parent | 64a2483b12f17e98160a5974a3015a54629de480 (diff) | |
| parent | f8346c4557f5e29e85245f259bce952014870dd6 (diff) | |
Merge pull request #34 from heatherleaf/master
Encode/decode of canonical grammars to/from JSON/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) |
