Compiler Writing System for Attribute Grammars
Open Access
- 1 May 1978
- journal article
- Published by Oxford University Press (OUP) in The Computer Journal
- Vol. 21 (2) , 144-148
- https://doi.org/10.1093/comjnl/21.2.144
Abstract
The paper presents a compiler writing system which is believed to be portable and easily usable. Similar in philosophy to a bottom-up compiler writing system built previously, this system generates compilers for top-down syntax analysis. The system allows the use of regular expressions for the specification of the syntax of the language to be compiled, and the use of inherited and synthesised attributes for the specification of the semantics. The generated compilers are written in PASCAL. The second part of the paper discusses the system in view of certain aspects that are important for the user of a compiler writing system. Among these aspects are discussed the coverage of different problem areas, such as lexical and syntactic analysis, specification of semantics, error treatment, etc. the simplicity and flexibility of the system's use, and the conciseness and readability of the compiler specification language. The portability of the system is obtained by using PASCAL as the implementation language, and as language for the generated compilers.Keywords
This publication has 0 references indexed in Scilit: