diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-06-16 14:45:00 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-06-19 19:15:31 +0200 |
commit | f2b210a901f4271ef5c936355bb5dae95cd260b0 (patch) | |
tree | 438dcf72579fc6b5115c51090ccb36177acd1121 /tests/local.at | |
parent | 66ac4acc6c0ad4be029507f7ab573edab5a356c4 (diff) | |
download | bison-f2b210a901f4271ef5c936355bb5dae95cd260b0.tar.gz |
java: fix support for api.prefix
* data/skeletons/java.m4: here.
* tests/java.at: Check it.
Diffstat (limited to 'tests/local.at')
-rw-r--r-- | tests/local.at | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/local.at b/tests/local.at index 63310901..2b331cc9 100644 --- a/tests/local.at +++ b/tests/local.at @@ -200,7 +200,7 @@ m4_pushdef([AT_NAME_PREFIX], [m4_bregexp([$3], [\(%define api\.prefix\|%name-prefix\) [\{\"]\([^\"\}]*\)[\"\}]], [\2])], - [yy])]) + [AT_JAVA_IF([YY], [yy])])]) # AT_NAMESPACE: also consider api.prefix. FIXME: Stop that confusion. m4_pushdef([AT_NAMESPACE], [m4_bmatch([$3], [\(%define api\.\(namespace\|prefix\)\|%name-prefix\) .*], @@ -218,7 +218,7 @@ m4_pushdef([AT_VARIANT_IF], m4_pushdef([AT_API_prefix], [m4_bmatch([$3], [%define api\.prefix {.*}], [m4_bregexp([$3], [%define api\.prefix {\([^\}]*\)}], [\1])], - [yy])]) + [AT_JAVA_IF([YY], [yy])])]) m4_pushdef([AT_API_PREFIX], [m4_toupper(AT_API_prefix)]) # yyerror receives the location if %location, and if the parser is pure. For @@ -782,7 +782,7 @@ m4_define([AT_MAIN_DEFINE(java)], { public static void main (String args[]) throws IOException { - YYParser p = new YYParser (); + ]AT_API_prefix[Parser p = new ]AT_API_prefix[Parser (); System.exit (p.parse () ? 0 : 1); } }]]) |