|Design of Bison generated code email@example.com (Siddharth) (2002-05-27)|
|Re: Design of Bison generated code firstname.lastname@example.org (Hans Aberg) (2002-05-31)|
|From:||"Hans Aberg" <email@example.com>|
|Date:||31 May 2002 23:02:31 -0400|
|Posted-Date:||31 May 2002 23:02:31 EDT|
"Siddharth" <firstname.lastname@example.org> wrote:
>I want to change the code generated by Bison. Are there any documents
>( other than the Bison manual ) which give the detailed design of the
>code generated by Bison.
I suggest you contact one of the groups
The later versions of Bison has undergone a series of changes in order
to facilitate altered output (like in other languages, like C++). I
think that current Bison beta calls the macro program M4 when called
for, which should simplify more radical changes in output.
If you want to merely alter the skeleton file for your private
program, write to Help-bison. If you want to do something bigger, like
implementing a new parsing algorithm, write to Bug-Bison.
>[Bison is derived from Bob Corbett's Berkeley Yacc, which he wrote as
>part of his thesis project. His thesis is available online. -John]
The original idea of Corbett was to implement semantic dependant error
recovery, but his conclusion, and that of others at Berkeley, was that
essentially, it was not worth the effort. He therefore removed that
"semantic parser" part a decade ago from the Berkeley version. In
Bison, the "semantic parser" part has since long been broken, and now
finally been removed altogether (or so the current maintainer Akim
Therefore, I suspect Corbett's thesis will not give much hints on what
is in current Bison, but it is better to rely on inputs from the
current maintainers and users.
Hans Aberg * Anti-spam: remove "remove." from email address.
* Email: Hans Aberg <email@example.com>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>
Return to the
Search the comp.compilers archives again.