|Inherited attributes in YACC LOCKS@sunvax.sun.ac.za (Graeme Lockley) (1991-11-15)|
|Re: Inherited attributes in YACC firstname.lastname@example.org (Raul Deluth Miller-Rockwell) (1991-11-05)|
|From:||Raul Deluth Miller-Rockwell <email@example.com>|
|Date:||Tue, 5 Nov 91 02:46:50 est|
I am very intrested to know how does one, assuming it is possible,
use/implement inherited attributes in YACC.
Well, if you grant that yacc is already rather ugly, and uses global
variables all over the place, you might be happy just implementing a
[global] stack, and keeping track of these attributes there. [e.g. I
usually use a stack of symbol tables when implementing something using
Error recovery won't always be graceful, but then, with yacc it never
is. [Bison is much better here.]
Raul Deluth Miller-Rockwell
Return to the
Search the comp.compilers archives again.