Related articles |
---|
can you give me some comment on this vector packing in bison? xcmhit@gmail.com (Changming Xu) (2010-03-20) |
From: | Changming Xu <xcmhit@gmail.com> |
Newsgroups: | comp.compilers |
Date: | Sat, 20 Mar 2010 18:26:45 +0800 |
Organization: | Compilers Central |
Keywords: | bison, question |
Posted-Date: | 20 Mar 2010 23:22:48 EDT |
hi,
can somebody give me some comment on the following code in bison/byacc
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!!
Return to the
comp.compilers page.
Search the
comp.compilers archives again.