help-bison
[Top][All Lists]
Advanced

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

Re: Any Method of reading the token values off the stack


From: Tim Zimmerlin
Subject: Re: Any Method of reading the token values off the stack
Date: Sun, 9 May 2004 21:52:34 -0400

Hans,

I looked at the bison generated parser. I believe that:

yystacksize is the number of stack elements in each of the yyss, yyvs, and yyls arrays.

the yyss, yyvs, and yyls stacks are synchronized with the same offset from the head of the array.

yyvs[0] is never used or initialized but yyss[0] is used.

int size = yyvsp - yyvs[1] + 1; // count of stack members with yyvs[0] unused


Is this correct? What is yyls? How can I determine the data type of each yyvs[i] when a union is used?

Your previous suggestion was very helpful.

Thanks,
Tim





reply via email to

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