summaryrefslogtreecommitdiff
path: root/tests/calc.at
diff options
context:
space:
mode:
authorAkim Demaille <akim.demaille@gmail.com>2020-04-28 07:46:33 +0200
committerAkim Demaille <akim.demaille@gmail.com>2020-04-28 07:56:00 +0200
commit11027558c8a304012f7336933061a47ca31e81b0 (patch)
treebf3c22893729187ec432f5c39eed1b0547f130f7 /tests/calc.at
parentcd4e799da482d0fdfc2305ff66a9ea43cea5ad7b (diff)
downloadbison-11027558c8a304012f7336933061a47ca31e81b0.tar.gz
java: clean up the definition of token kinds
From public interface Lexer { /* Token kinds. */ /** Token number, to be returned by the scanner. */ static final int YYEOF = 0; /** Token number, to be returned by the scanner. */ static final int YYERRCODE = 256; /** Token number, to be returned by the scanner. */ static final int YYUNDEF = 257; /** Token number, to be returned by the scanner. */ static final int BANG = 258; ... /** Deprecated, use b4_symbol(0, id) instead. */ public static final int EOF = YYEOF; to public interface Lexer { /* Token kinds. */ /** Token "end of file", to be returned by the scanner. */ static final int YYEOF = 0; /** Token error, to be returned by the scanner. */ static final int YYerror = 256; /** Token "invalid token", to be returned by the scanner. */ static final int YYUNDEF = 257; /** Token "!", to be returned by the scanner. */ static final int BANG = 258; ... /** Deprecated, use YYEOF instead. */ public static final int EOF = YYEOF; * data/skeletons/java.m4 (b4_token_enum): Display the symbol's tag in comment. * data/skeletons/lalr1.java: Address overquotation issue. * examples/java/calc/Calc.y, examples/java/simple/Calc.y: Use YYEOF, not EOF.
Diffstat (limited to 'tests/calc.at')
-rw-r--r--tests/calc.at2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/calc.at b/tests/calc.at
index 4a9eaa73..34fa9bab 100644
--- a/tests/calc.at
+++ b/tests/calc.at
@@ -392,7 +392,7 @@ m4_define([AT_CALC_YYLEX(java)],
switch (tkind)
{
case StreamTokenizer.TT_EOF:
- return EOF;
+ return CALC_EOF;
case StreamTokenizer.TT_EOL:;]AT_LOCATION_IF([[
end.line += 1;
end.column = 0;]])[