Semantic Evaluation from Left to Right

146Citations
Citations of this article
13Readers
Mendeley users who have this article in their library.

Abstract

This paper describes attribute grammars and their use for the definition of programming languages and compilers; a formal definition of attribute grammars and a discussion of some of its important aspects are included. The paper concentrates on the evaluation of semantic attributes in a few passes from left to right over the derivation tree of a program. A condition for an attribute grammar is given which assures that the semantics of any program can be evaluated in a single pass over the derivation tree, and an algorithm is discussed which decides how many passes from left to right are in general necessary, given the attribute grammar. These notions are explained in terms of an example grammar which describes the scope rules of Algol 60. Practical questions, such as the relative efficiency of different evaluation schemes, and the ease of adapting the attribute grammar of a given programming language to the left-to-right evaluation scheme are discussed. © 1976, ACM. All rights reserved.

Cite

CITATION STYLE

APA

Bochmann, G. V. (1976). Semantic Evaluation from Left to Right. Communications of the ACM, 19(2), 55–62. https://doi.org/10.1145/359997.359999

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free