java: add an example

* examples/java/Calc.y: New, based on test 495: "Calculator
parse.error=verbose %locations".
* examples/java/Calc.test, examples/java/local.mk: New.

* configure.ac (ENABLE_JAVA): New.
* examples/test (prog): Be ready to run Java programs.
This commit is contained in:
Akim Demaille
2018-11-30 06:39:19 +01:00
parent 3422ee7435
commit d2386a35f5
9 changed files with 242 additions and 1 deletions

View File

@@ -280,6 +280,7 @@ AC_SUBST([GCC])
gt_JAVACOMP([1.7], [1.7])
gt_JAVAEXEC
AM_CONDITIONAL([ENABLE_JAVA], [test x"$CONF_JAVAC" != x && test x"$CONF_JAVA" != x])
AC_CONFIG_FILES([Makefile
po/Makefile.in