mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-09 12:23:04 +00:00
java: style: prefer putting the square brackets on the type
* examples/java/calc/Calc.y, examples/java/simple/Calc.y, * tests/calc.at, tests/local.at: here.
This commit is contained in:
@@ -113,7 +113,7 @@ m4_define([AT_CALC_MAIN(d)],
|
||||
|
||||
|
||||
m4_define([AT_CALC_MAIN(java)],
|
||||
[[public static void main (String args[]) throws IOException
|
||||
[[public static void main (String[] args) throws IOException
|
||||
{]AT_LEXPARAM_IF([[
|
||||
Calc p = new Calc (System.in);]], [[
|
||||
CalcLexer l = new CalcLexer (System.in);
|
||||
|
||||
@@ -913,7 +913,7 @@ m4_define([AT_YYLEX_DEFINE(java)],
|
||||
m4_define([AT_MAIN_DEFINE(java)],
|
||||
[[class input
|
||||
{
|
||||
public static void main (String args[]) throws IOException
|
||||
public static void main (String[] args) throws IOException
|
||||
{
|
||||
]AT_API_prefix[Parser p = new ]AT_API_prefix[Parser ();
|
||||
System.exit (p.parse () ? 0 : 1);
|
||||
|
||||
Reference in New Issue
Block a user