From a7daa63cb79446a62c99de2d9d9f83cac69528d1 Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 28 Sep 2020 19:41:32 +0200 Subject: [PATCH] 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... --- TODO | 3 +++ tests/calc.at | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/TODO b/TODO index 8d6de590..72af014b 100644 --- a/TODO +++ b/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 maintenance *simple* by avoiding any gratuitous difference. +** CI +Check when gdc and ldc. + ** Documentation Write documentation about D support in doc/bison.texi. Imitate the Java documentation. You should be more succinct IMHO. diff --git a/tests/calc.at b/tests/calc.at index ec8723c9..a96fc98a 100644 --- a/tests/calc.at +++ b/tests/calc.at @@ -606,7 +606,7 @@ class CalcLexer(R) : Lexer // EOF. if (input.empty) - return TokenKind.]AT_TOKEN_PREFIX[CALC_EOF; + return TokenKind.]AT_TOKEN_PREFIX[EOF; // Numbers. if (input.front.isNumber) @@ -666,7 +666,7 @@ m4_define([_AT_DATA_CALC_Y(d)], %printer { fprintf (yyo, "%d", $$); } ; /* 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 NUM "number" %type exp