mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-20 01:33:03 +00:00
tests: remove useless prefix for EOF in D
* tests/calc.at (CALC_EOF): Rename as... (EOF): this. Since there is no risk of a clash with #define EOF here...
This commit is contained in:
3
TODO
3
TODO
@@ -256,6 +256,9 @@ are. Keep the same variable names. If you change the wording in one place,
|
|||||||
do it in the others too. In other words: make sure to keep the
|
do it in the others too. In other words: make sure to keep the
|
||||||
maintenance *simple* by avoiding any gratuitous difference.
|
maintenance *simple* by avoiding any gratuitous difference.
|
||||||
|
|
||||||
|
** CI
|
||||||
|
Check when gdc and ldc.
|
||||||
|
|
||||||
** Documentation
|
** Documentation
|
||||||
Write documentation about D support in doc/bison.texi. Imitate the Java
|
Write documentation about D support in doc/bison.texi. Imitate the Java
|
||||||
documentation. You should be more succinct IMHO.
|
documentation. You should be more succinct IMHO.
|
||||||
|
|||||||
@@ -606,7 +606,7 @@ class CalcLexer(R) : Lexer
|
|||||||
|
|
||||||
// EOF.
|
// EOF.
|
||||||
if (input.empty)
|
if (input.empty)
|
||||||
return TokenKind.]AT_TOKEN_PREFIX[CALC_EOF;
|
return TokenKind.]AT_TOKEN_PREFIX[EOF;
|
||||||
|
|
||||||
// Numbers.
|
// Numbers.
|
||||||
if (input.front.isNumber)
|
if (input.front.isNumber)
|
||||||
@@ -666,7 +666,7 @@ m4_define([_AT_DATA_CALC_Y(d)],
|
|||||||
%printer { fprintf (yyo, "%d", $$); } <ival>;
|
%printer { fprintf (yyo, "%d", $$); } <ival>;
|
||||||
|
|
||||||
/* Bison Declarations */
|
/* Bison Declarations */
|
||||||
%token CALC_EOF 0 ]AT_TOKEN_TRANSLATE_IF([_("end of input")], ["end of input"])[
|
%token EOF 0 ]AT_TOKEN_TRANSLATE_IF([_("end of input")], ["end of input"])[
|
||||||
%token <ival> NUM "number"
|
%token <ival> NUM "number"
|
||||||
%type <ival> exp
|
%type <ival> exp
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user