[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What are the arrays (yytranslate, yyprhs...) mean and how are they
From: |
Joel E. Denny |
Subject: |
Re: What are the arrays (yytranslate, yyprhs...) mean and how are they caculated in bison? |
Date: |
Sun, 2 Aug 2009 00:18:51 -0400 (EDT) |
User-agent: |
Alpine 1.00 (DEB 882 2007-12-20) |
On Fri, 31 Jul 2009, bookman bookman wrote:
> I am a newer in bison and i have used lex and bison to implement a
> caculator. When i opened the source generated by bison, I found some arrays
> instead of shift/reduce table and goto table, but i do not know what they
> are stand for and how they are caculated. These are the arrays that i can
> not figure out.
> yytranslate[];
> yyprhs[];
> yyrhs[];
> yyrline[];
> yyr1[];
> yyr2[];
> yydefact[];
> yydefgoto[];
> yypact[];
> yypgoto[];
> yytable[];
> yycheck[];
> yystos[];
>
> Can someone help me?Thanks a lot.
In src/tables.h in the Bison distribution, you can find comments about
these variables. Also, one of our contributors once wrote a web page
about them:
http://www.cs.uic.edu/~spopuri/cparser.html
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: What are the arrays (yytranslate, yyprhs...) mean and how are they caculated in bison?,
Joel E. Denny <=