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;