mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-08-25 05:36:21 -06:00
Export a grammar in source format to JSON
This commit is contained in:
@@ -87,6 +87,7 @@ data Phase = Preproc | Convert | Compile | Link
|
||||
data OutputFormat = FmtPGFPretty
|
||||
| FmtCanonicalGF
|
||||
| FmtCanonicalJson
|
||||
| FmtSourceJson
|
||||
| FmtJavaScript
|
||||
| FmtJSON
|
||||
| FmtPython
|
||||
@@ -474,6 +475,7 @@ outputFormatsExpl =
|
||||
[(("pgf_pretty", FmtPGFPretty),"human-readable pgf"),
|
||||
(("canonical_gf", FmtCanonicalGF),"Canonical GF source files"),
|
||||
(("canonical_json", FmtCanonicalJson),"Canonical JSON source files"),
|
||||
(("source_json", FmtSourceJson),"Source grammar as a JSON file"),
|
||||
(("json", FmtJSON),"JSON (whole grammar)"),
|
||||
(("haskell", FmtHaskell),"Haskell (abstract syntax)"),
|
||||
(("java", FmtJava),"Java (abstract syntax)"),
|
||||
|
||||
Reference in New Issue
Block a user