diff options
| author | John J. Camilleri <john@digitalgrammars.com> | 2019-07-10 19:32:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-10 19:32:49 +0200 |
| commit | 1ceb8c0342a4be31b3f7be9dc39d7f093b781c3b (patch) | |
| tree | a9487e62ff440997abf0f56b8bd2c06c1650932e /src/compiler/GF/Compile/Export.hs | |
| parent | 32379a8d1118838e8f3487e1c54ab6eee813e7a5 (diff) | |
| parent | eab9fb88aaa5408c342927693d8593f1e0ba2b91 (diff) | |
Merge pull request #45 from GrammaticalFramework/pgf2json
Add export to PGF JSON format
Diffstat (limited to 'src/compiler/GF/Compile/Export.hs')
| -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 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) |
