summaryrefslogtreecommitdiff
path: root/src/compiler/GF/Infra/Option.hs
diff options
context:
space:
mode:
authorKrasimir Angelov <kr.angelov@gmail.com>2017-08-29 20:53:47 +0200
committerKrasimir Angelov <kr.angelov@gmail.com>2017-08-29 20:53:47 +0200
commit1e4ab95e418fd704d414b85524d94ae64175b179 (patch)
tree263c5b5fd83b7e98b1a1d331b74aa62399afad76 /src/compiler/GF/Infra/Option.hs
parent03479648ad008966d15c7866630fef443f70f4dd (diff)
added option -output-format=java for producing code for embedded grammars in Java
Diffstat (limited to 'src/compiler/GF/Infra/Option.hs')
-rw-r--r--src/compiler/GF/Infra/Option.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/GF/Infra/Option.hs b/src/compiler/GF/Infra/Option.hs
index 48cb25cc7..efd59ca0b 100644
--- a/src/compiler/GF/Infra/Option.hs
+++ b/src/compiler/GF/Infra/Option.hs
@@ -90,6 +90,7 @@ data OutputFormat = FmtPGFPretty
| FmtJavaScript
| FmtPython
| FmtHaskell
+ | FmtJava
| FmtProlog
| FmtLambdaProlog
| FmtByteCode
@@ -475,6 +476,7 @@ outputFormatsExpl =
(("js", FmtJavaScript),"JavaScript (whole grammar)"),
(("python", FmtPython),"Python (whole grammar)"),
(("haskell", FmtHaskell),"Haskell (abstract syntax)"),
+ (("java", FmtJava),"Java (abstract syntax)"),
(("prolog", FmtProlog),"Prolog (whole grammar)"),
(("lambda_prolog",FmtLambdaProlog),"LambdaProlog (abstract syntax)"),
(("lp_byte_code", FmtByteCode),"Bytecode for Teyjus (abstract syntax, experimental)"),