enable export of canonical grammars to JSON and YAML

This commit is contained in:
Peter Ljunglöf
2019-02-08 09:10:48 +01:00
parent a0c1da2548
commit 47ac01e4b9
3 changed files with 22 additions and 5 deletions

View File

@@ -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)