mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-23 19:23:02 +00:00
style: enforce java coding style
* tests/scanner.at: here.
This commit is contained in:
@@ -178,8 +178,7 @@ m4_define([AT_RAW_YYLEX(java)],
|
|||||||
|
|
||||||
StreamTokenizer st;
|
StreamTokenizer st;
|
||||||
|
|
||||||
public CalcLexer (InputStream is)
|
public CalcLexer(InputStream is) {
|
||||||
{
|
|
||||||
st = new StreamTokenizer(new StringReader("0-(1+2)*3/9"));
|
st = new StreamTokenizer(new StringReader("0-(1+2)*3/9"));
|
||||||
st.resetSyntax();
|
st.resetSyntax();
|
||||||
st.eolIsSignificant(true);
|
st.eolIsSignificant(true);
|
||||||
@@ -188,8 +187,7 @@ m4_define([AT_RAW_YYLEX(java)],
|
|||||||
st.wordChars('0', '9');
|
st.wordChars('0', '9');
|
||||||
}
|
}
|
||||||
|
|
||||||
public void yyerror (String s)
|
public void yyerror(String s) {
|
||||||
{
|
|
||||||
System.err.println(s);
|
System.err.println(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user