A flexible semantic analyzer for Ada

  • Authors:
  • Mark S. Sherman;Martha S. Borkan

  • Affiliations:
  • -;-

  • Venue:
  • SIGPLAN '80 Proceedings of the ACM-SIGPLAN symposium on The ADA programming language
  • Year:
  • 1980

Quantified Score

Hi-index 0.01

Visualization

Abstract

A technique for writing semantic analysis phases of compilers is described. The technique uses Simula classes and virtual procedures to create a flexible and modular program. This technique is used to implement a semantic analysis phase of a compiler front end for the preliminary Ada language. Because the design is extremely flexible and modular, the front end is able to accommodate changes in the Ada language and its semantics as they are published. Several problems were encountered when implementing Ada's semantics. These problems are described and their solutions presented. The front end also produces TCOLAda, the specified intermediate language for various Ada compiler contracts. This output has been used by an experimental compiler back end. [9] The front end is written as two programs which perform lexical analysis, syntactic analysis, semantic analysis, and TCOLAda generation. The front end is coded in Simula, and has been running on DEC Tops-10 and Tops-20 systems since September 1979.