summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Compile/Export.hs
diff options
context:
space:
mode:
authorJohn J. Camilleri <john@digitalgrammars.com>2019-07-03 15:07:31 +0200
committerJohn J. Camilleri <john@digitalgrammars.com>2019-07-03 15:07:31 +0200
commitc5a75c482ccaf1ce955694fb63dd4e05e9d34a02 (patch)
treed7f5e3941739ab564cf5b076d225806452bc2504 /src/compiler/GF/Compile/Export.hs
parent32379a8d1118838e8f3487e1c54ab6eee813e7a5 (diff)
Start work on PGFtoJSON module. Add compiler flag `-f json`.
Diffstat (limited to 'src/compiler/GF/Compile/Export.hs')
-rw-r--r--src/compiler/GF/Compile/Export.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/GF/Compile/Export.hs b/src/compiler/GF/Compile/Export.hs
index e0811d40d..7d3337e3d 100644
--- a/src/compiler/GF/Compile/Export.hs
+++ b/src/compiler/GF/Compile/Export.hs
@@ -7,6 +7,7 @@ import GF.Compile.PGFtoHaskell
import GF.Compile.PGFtoJava
import GF.Compile.PGFtoProlog
import GF.Compile.PGFtoJS
+import GF.Compile.PGFtoJSON
import GF.Compile.PGFtoPython
import GF.Infra.Option
--import GF.Speech.CFG
@@ -38,6 +39,7 @@ exportPGF opts fmt pgf =
FmtCanonicalGF -> [] -- canon "gf" (render80 . abstract2canonical)
FmtCanonicalJson-> []
FmtJavaScript -> multi "js" pgf2js
+ FmtJSON -> multi "json" pgf2json
FmtPython -> multi "py" pgf2python
FmtHaskell -> multi "hs" (grammar2haskell opts name)
FmtJava -> multi "java" (grammar2java opts name)