Related articles |
---|
Design of Bison generated code siddharth_panjwani@yahoo.com (Siddharth) (2002-05-27) |
Re: Design of Bison generated code haberg@matematik.su.se (Hans Aberg) (2002-05-31) |
From: | "Hans Aberg" <haberg@matematik.su.se> |
Newsgroups: | comp.compilers |
Date: | 31 May 2002 23:02:31 -0400 |
Organization: | Mathematics |
References: | 02-05-145 |
Keywords: | yacc |
Posted-Date: | 31 May 2002 23:02:31 EDT |
"Siddharth" <siddharth_panjwani@yahoo.com> 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
Help-bison@gnu.org http://mail.gnu.org/mailman/listinfo/help-bison
Bug-bison@gnu.org http://mail.gnu.org/mailman/listinfo/bug-bison
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
Demaille says).
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 <remove.haberg@member.ams.org>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>
Return to the
comp.compilers page.
Search the
comp.compilers archives again.