ABSTRACT
THIS PAPER reports on a compiler writing system called TMG, basically a syntax directed system. It has, however, some interesting differences which make it easier to handle errors and declarative information. The original objective of this system was to make it as easy as possible to construct a simple one-pass translator for some specialized language.
In TMG, emphasis is placed on scanning and analysis of input text and efficient production of straightforward translation of the input. For this reason, there are substantially no facilities for handling program topology, efficient register assignment, common subexpression removal, or complicated storage assignment. It was felt that, if required, these should be handled by a specially written post-processor.
To explain how one writes a translator in TMGL, we will describe in some detail a compiler which translates a simple algebraic language (SAL) into symbolic machine code for the IBM 7040.
Index Terms
- Programming languages for non-numeric processing—1: TMG—a syntax directed compiler
Recommendations
Programming languages for non-numeric processing—2: An introduction to the COGENT programming system
ACM '65: Proceedings of the 1965 20th national conferenceTHE COGENT (COmpiler and GENeralized Translator) programming system is a compiler whose input language is designed to describe symbolic or linguistic manipulation algorithms. Although the system is intended primarily for use as a compiler compiler, it ...
Programming Languages for Non-Numeric Processing—1: examples of symbol manipulation in the AMBIT Programming Language
ACM '65: Proceedings of the 1965 20th national conferenceTHE AMBIT PROGRAMMING language has been applied to problems in two areas. In the area of algebraic symbol manipulation, programs have been written in AMBIT for elementary arithmetic, elementary algebra, formal differentiation, set operations, and ...
Programming languages for non-numeric processing—2: An extended ALGOL based language
ACM '65: Proceedings of the 1965 20th national conferenceTHE PURPOSE of a problem oriented language (POL) is to provide a convenient and efficient means for expressing the algorithms for solving a large class of problems. In the past, many special problem oriented languages were developed to efficiently ...
Comments