An object-oriented specification for compiler
- 1 January 1992
- journal article
- Published by Association for Computing Machinery (ACM) in ACM SIGPLAN Notices
- Vol. 27 (1) , 85-94
- https://doi.org/10.1145/130722.130733
Abstract
In this paper, we present an object-oriented approach to compiler specification. Our method treats grammar symbols as templates which instantiate nodes of parse tree for object-oriented semantic analysis. To have better classification and inheritance for semantic description, it uses restricted CFG to specify grammar rules. The semantic specification is done based on a class hierarchy generated from the restricted CFG. Besides, that a path expression is booted to describe the possible receivers of a message releases the restriction on the specification of message (value) propagations in attribute grammar methods.Keywords
This publication has 6 references indexed in Scilit:
- Applying classification and inheritance into compilingACM SIGPLAN OOPS Messenger, 1993
- The ergo attribute systemPublished by Association for Computing Machinery (ACM) ,1988
- Dimensions of object-based language designPublished by Association for Computing Machinery (ACM) ,1987
- Attribute propagation by message passingPublished by Association for Computing Machinery (ACM) ,1985
- Extended Attribute GrammarsThe Computer Journal, 1983
- Semantics of context-free languagesTheory of Computing Systems, 1968