|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)|
|yacc inherited attributes email@example.com (Dirk Zabel) (1991-11-07)|
|From:||Graeme Lockley <LOCKS@sunvax.sun.ac.za>|
|Date:||Mon, 4 Nov 91 09:32 SAST|
I am very intrested to know how does one, assuming it is possible,
use/implement inherited attributes in YACC.
Rumour has it that it is possible to patch backwards into the attribute
evaluation stack to achieve the desired results.
Accompanied with an explaination, a small YACC example would be greatly
[In AT&T yacc you can use the poorly documented "$0" to reference an enclosing
production. The PCC C parser uses that feature when parsing declarations.
It's pretty ugly, though. -John]
Return to the
Search the comp.compilers archives again.