mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 20:33:03 +00:00
java: move away from _ for internationalization
The "_" is becoming a keyword in Java, which causes tons of warnings currently in our test suite. GNU Gettext is now using "i18n" instead of "_" (https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commitdiff;h=e89fea36545f27487d9652a13e6a0adbea1117d0). * data/skeletons/java.m4: Use "i18n", not "_". * examples/java/calc/Calc.y, tests/calc.at: Adjust.
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
%code {
|
||||
public static void main (String[] args) throws IOException
|
||||
public static void main(String[] args) throws IOException
|
||||
{
|
||||
CalcLexer l = new CalcLexer (System.in);
|
||||
Calc p = new Calc (l);
|
||||
@@ -30,7 +30,7 @@
|
||||
System.exit (1);
|
||||
}
|
||||
|
||||
static String _ (String s)
|
||||
static String i18n(String s)
|
||||
{
|
||||
return s;
|
||||
}
|
||||
@@ -38,8 +38,9 @@
|
||||
|
||||
/* Bison Declarations */
|
||||
%token
|
||||
'\n' _("end of line")
|
||||
<Integer> NUM _("number")
|
||||
'\n' _("end of line")
|
||||
<Integer>
|
||||
NUM _("number")
|
||||
%type <Integer> exp
|
||||
|
||||
%nonassoc '=' /* comparison */
|
||||
|
||||
Reference in New Issue
Block a user