From 05c5782227f00f31bcdb6c48a7b5a1b0c1625335 Mon Sep 17 00:00:00 2001
From: Adela Vais <adela.vais99@gmail.com>
Date: Mon, 21 Dec 2020 13:38:00 +0200
Subject: [PATCH for Dlang support 1/3] d: remove unnecessary comparison from
 YYParser.parse()

* data/skeletons/lalr1.d: Here.
---
 data/skeletons/lalr1.d | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/data/skeletons/lalr1.d b/data/skeletons/lalr1.d
index 4a2dff38..2b81514c 100644
--- a/data/skeletons/lalr1.d
+++ b/data/skeletons/lalr1.d
@@ -591,12 +591,9 @@ m4_popdef([b4_at_dollar])])dnl
           /* If just tried and failed to reuse lookahead token after an
            * error, discard it.  */
 
-          if (yytoken <= ]b4_symbol(eof, [kind])[)
-          {
-            /* Return failure if at end of input.  */
-            if (yytoken == ]b4_symbol(eof, [kind])[)
-             return false;
-          }
+          /* Return failure if at end of input.  */
+          if (yytoken == ]b4_symbol(eof, [kind])[)
+            return false;
           else
             yytoken = ]b4_symbol(empty, kind)[;
         }
-- 
2.17.1

