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

@@ -34,6 +34,12 @@ Extracted from the documentation: "A Complete C++ Example".
https://www.gnu.org/software/bison/manual/html_node/A-Complete-C_002b_002b-Example.html
* Examples in Java
** java/Calc.y
The usual calculator.
-----
Local Variables: