diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2020-02-06 08:25:44 +0100 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2020-02-08 11:24:53 +0100 |
commit | 52db24b2bc46ca1cc9af2ce1cb15b00bdab99d90 (patch) | |
tree | 5d449f81f3cb1b6002250185639691cda6e8e881 /examples | |
parent | 650b253843727980af2a14e3bc2b667e62d7d0d5 (diff) | |
download | bison-52db24b2bc46ca1cc9af2ce1cb15b00bdab99d90.tar.gz |
java: add support for parse.error=detailed
In Java there is no need for N_ and yytranslate_. So instead of
hard-coding the use of N_ in the table of the symbol names, rely on
b4_symbol_translate.
* src/output.c (prepare_symbol_names): Use b4_symbol_translate instead
of N_.
* data/skeletons/c.m4 (b4_symbol_translate): New.
* data/skeletons/lalr1.java (yysymbolName): New.
Use it.
* examples/java/calc/Calc.y: Use parse.error=detailed.
* tests/calc.at: Check parse.error=detailed.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/java/calc/Calc.y | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/java/calc/Calc.y b/examples/java/calc/Calc.y index 9e8270c9..2ae09bad 100644 --- a/examples/java/calc/Calc.y +++ b/examples/java/calc/Calc.y @@ -3,7 +3,7 @@ %define api.parser.class {Calc} %define api.parser.public -%define parse.error verbose +%define parse.error detailed %define parse.trace %locations |