Re: yacc parse tree

Sukru Cinar <scinar@ug.bcc.bilkent.edu.tr>
2 Jan 1999 00:24:46 -0500

          From comp.compilers

Related articles
[4 earlier articles]
Re: yacc parse tree belinfan@cs.utwente.nl (1998-12-18)
Re: yacc parse tree josh_adams@bmc.com (Josh Adams) (1998-12-19)
Re: yacc parse tree joachim.durchholz@munich.netsurf.de (Joachim Durchholz) (1998-12-19)
Re: yacc parse tree scinar@ug.bcc.bilkent.edu.tr (Sukru Cinar) (1998-12-21)
Re: yacc parse tree scinar@ug.bcc.bilkent.edu.tr (Sukru Cinar) (1998-12-22)
Re: yacc parse tree AMartin@ma.ultranet.com (Alan H. Martin) (1999-01-02)
Re: yacc parse tree scinar@ug.bcc.bilkent.edu.tr (Sukru Cinar) (1999-01-02)
Re: yacc parse tree buzzard@world.std.com (1999-01-02)
| List of all articles for this month |

From: Sukru Cinar <scinar@ug.bcc.bilkent.edu.tr>
Newsgroups: comp.compilers
Date: 2 Jan 1999 00:24:46 -0500
Organization: Bilkent University
References: 98-12-018 98-12-022 98-12-060 98-12-065
Keywords: yacc

> [I suppose that if for some reason you hate saying $2 you could do that.]


it's not that i hate typing $2 or not : if you do it the $x way, you must
add actions to end of every rule. but if you do it the other way, you just
insert a few lines to y.tab.c.


> But the only place you need to assign to last is in the start rule. -John]


right.


****************************************************************************
Sukru Cinar scinar@ug.bcc.bilkent.edu.tr
YetNotGraduate Computer Science Student in Bilkent/Turkey


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.