mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-18 08:43:03 +00:00
java: add support for parse.error custom
* data/skeletons/lalr1.java: Add support for custom parse errors. (yyntokens_): Make it public. Under... (yyntokens): this name. (Context): Capture the location too. * examples/c/bistromathic/parse.y, * examples/c/bistromathic/bistromathic.test: Improve error message. * examples/java/calc/Calc.test, examples/java/calc/Calc.y: Use custom error messages. * tests/calc.at, tests/local.at: Check custom error messages.
This commit is contained in:
@@ -1185,8 +1185,11 @@ m4_define([AT_CHECK_CALC_LALR1_JAVA],
|
||||
[AT_CHECK_CALC([%language "Java" $1], [$2])])
|
||||
|
||||
AT_CHECK_CALC_LALR1_JAVA
|
||||
AT_CHECK_CALC_LALR1_JAVA([%define parse.error custom])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%define parse.error detailed])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%define parse.error verbose])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%locations %define parse.error custom])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%locations %define parse.error detailed])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%locations %define parse.error verbose])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%define parse.trace %define parse.error verbose])
|
||||
AT_CHECK_CALC_LALR1_JAVA([%define parse.trace %define parse.error verbose %locations %lex-param {InputStream is}])
|
||||
|
||||
Reference in New Issue
Block a user