help-bison
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

can you give me some comment


From: Changming Xu
Subject: can you give me some comment
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!!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]