diff options
author | Akim Demaille <akim.demaille@gmail.com> | 2019-06-15 12:14:33 +0200 |
---|---|---|
committer | Akim Demaille <akim.demaille@gmail.com> | 2019-06-19 19:15:26 +0200 |
commit | 66ac4acc6c0ad4be029507f7ab573edab5a356c4 (patch) | |
tree | b2701c7a831826b2667c502ed38390975a16c368 /examples | |
parent | cd0f25df5f9f162639b622d10dff43c1be905214 (diff) | |
download | bison-66ac4acc6c0ad4be029507f7ab573edab5a356c4.tar.gz |
java: style changes
* data/skeletons/lalr1.java: Use more conventional function names for
Java.
Prefer < and <= to => and >.
Use the same approach for m4 quotation as in the other skeletons.
Fix indentation issues.
* tests/calc.at, tests/java.at, tests/javapush.at: Fix quotation style.
(main): Use 'args', not 'argv', the former seems more conventional and
is used elsewhere in Bison.
Prefer character literals to integers to denote characters.
* examples/java/Calc.y: Likewise.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/java/Calc.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/java/Calc.y b/examples/java/Calc.y index 5da43269..b69241b5 100644 --- a/examples/java/Calc.y +++ b/examples/java/Calc.y @@ -78,9 +78,9 @@ class CalcLexer implements Calc.Lexer { st = new StreamTokenizer (new InputStreamReader (is)); st.resetSyntax (); st.eolIsSignificant (true); - st.whitespaceChars (9, 9); - st.whitespaceChars (32, 32); - st.wordChars (48, 57); + st.whitespaceChars ('\t', '\t'); + st.whitespaceChars (' ', ' '); + st.wordChars ('0', '9'); } |