From 1e4ab95e418fd704d414b85524d94ae64175b179 Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Tue, 29 Aug 2017 20:53:47 +0200 Subject: added option -output-format=java for producing code for embedded grammars in Java --- src/compiler/GF/Infra/Option.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/GF/Infra') 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)"), -- cgit v1.2.3