mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-21 18:23:03 +00:00
style: enforce java coding style
* tests/scanner.at: here.
This commit is contained in:
@@ -178,24 +178,22 @@ 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);
|
st.whitespaceChars('\t', '\t');
|
||||||
st.whitespaceChars ('\t', '\t');
|
st.whitespaceChars(' ', ' ');
|
||||||
st.whitespaceChars (' ', ' ');
|
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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Integer yylval;
|
Integer yylval;
|
||||||
|
|
||||||
public Object getLVal () {
|
public Object getLVal() {
|
||||||
return yylval;
|
return yylval;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user