help-bison@gnu.org
[Top] [All Lists]

can you give me some comment

Subject: can you give me some comment
From: Changming Xu
Date: Sat, 20 Mar 2010 11:01:17 +0800
hi,
can you give me some comment on the following code in bison


pack_vector:

      for (k = 0; ok && k < vector; k++)
    if (pos[k] == j)
      ok = false;

I believe I  understand the pack alg from Aho[1986] and flex. But I don't
understand  why it does not work if  base[i] == base[j] for some i,j

(I confirmed it with bash-4.0/parse.y, it does not work if I comment these
lines)



Thanks!!
_______________________________________________
help-bison@xxxxxxx http://lists.gnu.org/mailman/listinfo/help-bison

<Prev in Thread] Current Thread [Next in Thread>