1984
DOI: 10.1145/579.586
|View full text |Cite
|
Sign up to set email alerts
|

Translation of attribute grammars into procedures

Abstract: An efficient method for evaluating attribute grammars by translating them into sets of procedures is presented. The basic idea behind the method is to consider nonterminal symbols of the grammar as functions that map their inherited attributes to their synthesized attributes. Associated with the nonterminal symbols are procedures that realize the functions. The attribute grammar is translated into a program consisting of these procedures. The essential point about this method is that attribute grammars are com… Show more

Help me understand this report

Search citation statements

Order By: Relevance

Paper Sections

Select...
2
1
1
1

Citation Types

0
11
0

Year Published

1986
1986
2005
2005

Publication Types

Select...
4
3
1

Relationship

1
7

Authors

Journals

citations
Cited by 48 publications
(16 citation statements)
references
References 14 publications
0
11
0
Order By: Relevance
“…When a model is instantiated, a new parser/analyzer instance is created. During the execution of the instance, attributes and semantic functions are evaluated and executed, following traditional techniques for L-attributed grammars [Katayama 1984]. Look-ahead sets are computed in advance and may be used for enabling/disabling of widgets (see section 2.2).…”
Section: Run Time Architecturementioning
confidence: 99%
“…When a model is instantiated, a new parser/analyzer instance is created. During the execution of the instance, attributes and semantic functions are evaluated and executed, following traditional techniques for L-attributed grammars [Katayama 1984]. Look-ahead sets are computed in advance and may be used for enabling/disabling of widgets (see section 2.2).…”
Section: Run Time Architecturementioning
confidence: 99%
“…A tree-walking evaluator traverses a syntax tree computing attribute values that are then stored in cells associated with each of the syntax tree nodes. In contrast, applicative evaluators first translate an attribute grammar into a program consisting of a collection of recursive applicative functions and then simply apply the function defining the result attribute of the attribute grammar to a syntax tree [Franchi-Zannettacci 1982;Katayama 1984].…”
Section: Optimal Incremental Evaluation Of Nonhierarchical Attribute mentioning
confidence: 99%
“…Time-optimal algorithms must, therefore, in constant time locate the "first" inconsistent attribute and, at any time during change propagation, determine the "next" inconsistent attribute to evaluate in accordance with the topological ordering of all of the attributes in the syntax tree. The well-known algorithms of Yeh [1983] and Reps [1982;1984] do just this. …”
Section: · Alan Carle and Lori Pollockmentioning
confidence: 99%
“…We suppose the class of attribute grammars is absolutely non-circular and their evaluator is a recursive attribute evaluator proposed in [6]. The structure of this paper is as follows.…”
Section: Introductionmentioning
confidence: 99%
“…This grammar computes the value and the length of fractional binary notation [6]. The evaluator targeted in this paper is a recursive evaluator proposed in the literature [6]. The evaluator is able to evaluate the class of absolutely non-circular attribute grammars.…”
Section: Introductionmentioning
confidence: 99%