yacc inherited attributes

Dirk Zabel <dzabel@cs.tu-berlin.de>
Thu, 7 Nov 1991 17:02:03 +0100

          From comp.compilers

Related articles
Inherited attributes in YACC LOCKS@sunvax.sun.ac.za (Graeme Lockley) (1991-11-15)
yacc inherited attributes dzabel@cs.tu-berlin.de (Dirk Zabel) (1991-11-07)
| List of all articles for this month |
Newsgroups: comp.compilers
From: Dirk Zabel <dzabel@cs.tu-berlin.de>
Keywords: yacc, attribute, bibliography
Organization: Compilers Central
References: 91-11-010
Date: Thu, 7 Nov 1991 17:02:03 +0100

Grame Lockley writes:
    I am very intrested to know how does one, assuming it is possible,
    use/implement inherited attributes in YACC.


I would suggest to read
        J. van Katwijk:
        "A preprocessor for YACC or
          A poor man's approach to parsing attributed grammars."
        Sigplan Notices, Vol 18, Nr 10, pp 12-15 (1983)


He describes how to implement a preprocessor which extends YACC
to process a (of course) limited kind of attribute grammar. The
grammar class covered is defined in
        R. Wilhelm:
        "LL- and LR-attributed Grammars"
        in
        Hans Woessner (Ed.)
        "Programmiersprachen und Programmentwicklung"
        7. GI-Fachtagung, Maerz 1982 (Proceedings)
        Informatik-Fachberichte 53
        Berlin/Heidelberg/New York 1982 (Springer)


Hope this helps.


Dirk Zabel <dzabel@cs.tu-berlin.de>
Technische Universitaet Berlin
Fachbereich Informatik
Institut fuer angewandte Informatik
Fachgruppe Programmiersprachen und Compiler
Franklinstr. 28/29
D - 1000 Berlin 10
--


Post a followup to this message

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