[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bison 1.50 question: Can it support Auto-Complete?
From: |
Akim Demaille |
Subject: |
Re: Bison 1.50 question: Can it support Auto-Complete? |
Date: |
22 Oct 2002 09:47:29 +0200 |
User-agent: |
Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) |
| I replaced with this code:
|
| [the same code]
Sorry, bad copy-paste. Here is the diff:
Index: src/lalr.c
===================================================================
RCS file: /cvsroot/bison/bison/src/lalr.c,v
retrieving revision 1.92
diff -u -u -r1.92 lalr.c
--- src/lalr.c 4 Sep 2002 10:18:15 -0000 1.92
+++ src/lalr.c 22 Oct 2002 07:47:10 -0000
@@ -346,15 +346,9 @@
!TRANSITION_IS_DISABLED (sp, 0) && TRANSITION_IS_SHIFT (sp, 0)))
nlookaheads += rp->num;
else
- state->consistent = 1;
-
- for (k = 0; k < sp->num; k++)
- if (!TRANSITION_IS_DISABLED (sp, k) && TRANSITION_IS_ERROR (sp, k))
- {
- state->consistent = 0;
- break;
- }
+ nlookaheads += 1;
+ state->consistent = 0;
return nlookaheads;
}