mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-16 15:53:03 +00:00
examples: d: remove unused token
* examples/d/calc/calc.y, examples/d/simple/calc.y: Remove "=".
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user