The search functionality is under construction.
The search functionality is under construction.

Transformation of Attribute Grammars into Efficient Action Routines by Patch Introduction

Takehiro TOKUDA

  • Full Text Views

    0

  • Cite this

Summary :

This paper gives a method for transforming attribute grammars into efficient action routines. An action routine description is a set of fragments of programs associated with production rules. Those fragments of programs are activated according to the ordering given by a bottom-up syntax analyzer. We present a transformation method which we call patch introduction. Patch introduction consists of techniques which we call extended postfix transformation and broadcast type inherited attribute elimination. Extended postfix transformation is an extension of simple postfix transformation. Broadcast type inherited attribute elimination is a technique of making the evaluation into a one-pass bottom-up evaluation. The scenario of patch introduction is as follows. First we reverse the flow of broadoast type inherited attributes, and transform those inherited attributes into synthesized attributes whose values are sets of addresses. Then we introduce generation of incomplete code where code is an extended postfix attribute, and introduce patch operations at the point where values of the broadcast type inherited attributes are determined. We illustrate the usefulness of our patch introduction method using a problem of translation of Boolean expressions into an intermediate code of short-circuit evaluation form.

Publication
IEICE TRANSACTIONS on transactions Vol.E69-E No.9 pp.980-987
Publication Date
1986/09/25
Publicized
Online ISSN
DOI
Type of Manuscript
PAPER
Category
Automata and Languages

Authors

Keyword