examples: d: remove unused token

* examples/d/calc/calc.y, examples/d/simple/calc.y: Remove "=".
This commit is contained in:
Akim Demaille
2020-09-07 06:45:32 +02:00
parent 5d711972b8
commit 93d6a5ba4d
2 changed files with 2 additions and 6 deletions

View File

@@ -29,8 +29,7 @@
} }
/* Bison Declarations */ /* Bison Declarations */
%token EQ "=" %token PLUS "+"
PLUS "+"
MINUS "-" MINUS "-"
STAR "*" STAR "*"
SLASH "/" SLASH "/"
@@ -154,7 +153,6 @@ class CalcLexer(R) : Lexer
end.column++; end.column++;
switch (ch) switch (ch)
{ {
case '=': return TokenKind.EQ;
case '+': return TokenKind.PLUS; case '+': return TokenKind.PLUS;
case '-': return TokenKind.MINUS; case '-': return TokenKind.MINUS;
case '*': return TokenKind.STAR; case '*': return TokenKind.STAR;

View File

@@ -27,8 +27,7 @@
} }
/* Bison Declarations */ /* Bison Declarations */
%token EQ "=" %token PLUS "+"
PLUS "+"
MINUS "-" MINUS "-"
STAR "*" STAR "*"
SLASH "/" SLASH "/"
@@ -134,7 +133,6 @@ class CalcLexer(R) : Lexer
input.popFront; input.popFront;
switch (ch) switch (ch)
{ {
case '=': return TokenKind.EQ;
case '+': return TokenKind.PLUS; case '+': return TokenKind.PLUS;
case '-': return TokenKind.MINUS; case '-': return TokenKind.MINUS;
case '*': return TokenKind.STAR; case '*': return TokenKind.STAR;