From 93d6a5ba4df9ccc0935ef2c8bc892c02c8c1540d Mon Sep 17 00:00:00 2001 From: Akim Demaille Date: Mon, 7 Sep 2020 06:45:32 +0200 Subject: [PATCH] examples: d: remove unused token * examples/d/calc/calc.y, examples/d/simple/calc.y: Remove "=". --- examples/d/calc/calc.y | 4 +--- examples/d/simple/calc.y | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/d/calc/calc.y b/examples/d/calc/calc.y index 0aa96ee6..2ad1227a 100644 --- a/examples/d/calc/calc.y +++ b/examples/d/calc/calc.y @@ -29,8 +29,7 @@ } /* Bison Declarations */ -%token EQ "=" - PLUS "+" +%token PLUS "+" MINUS "-" STAR "*" SLASH "/" @@ -154,7 +153,6 @@ class CalcLexer(R) : Lexer end.column++; switch (ch) { - case '=': return TokenKind.EQ; case '+': return TokenKind.PLUS; case '-': return TokenKind.MINUS; case '*': return TokenKind.STAR; diff --git a/examples/d/simple/calc.y b/examples/d/simple/calc.y index 15b4f7c7..917eb131 100644 --- a/examples/d/simple/calc.y +++ b/examples/d/simple/calc.y @@ -27,8 +27,7 @@ } /* Bison Declarations */ -%token EQ "=" - PLUS "+" +%token PLUS "+" MINUS "-" STAR "*" SLASH "/" @@ -134,7 +133,6 @@ class CalcLexer(R) : Lexer input.popFront; switch (ch) { - case '=': return TokenKind.EQ; case '+': return TokenKind.PLUS; case '-': return TokenKind.MINUS; case '*': return TokenKind.STAR;