Abstract
A syntax directed translator, developed by extending Strachey's GPM, is described. The semantic input to the translator consists of strings which are attached to vertices of derivation trees of sentences of context-free languages. These strings may contain macro calls which control the translator and its output. The translator may be used for compilation and for some symbol manipulation problems. Some practical as well as theoretical possibilities of this approach are discussed.
Similar content being viewed by others
References
Harvey Abramson,Theory and Application of a Bottom-up Syntax-directed Translator, A.C.M. Monograph Series, Academic Press, 1973.
Alfred V. Aho and Jeffrey D. Ullman,The Theory of Parsing, Translation, and Compiling, 2 volumes, Prentice-Hall, 1972, 1973.
Alfred V. Aho and Jeffrey D. Ullman,Translations on a context-free grammar, Information and Control 19 (1971), 439–475.
Alfred V. Aho and Jeffrey D. Ullman,Properties of syntax directed translations, J. Computer and System Sciences, 3 (1969), 319–334.
Alfred V. Aho and Jeffrey D. Ullman,Syntax directed translations and the pushdown assembler, J. Computer and System Sciences 3 (1969), 37–56.
Alfred V. Aho and Jeffrey D. Ullman,A General Theory of Translation, Mathematical Systems Theory 3 (1969), 193–221.
Alfred V. Aho and Jeffrey D. Ullman,Characterizations and Extensions of Pushdown Translations 5 (1971), 172–192.
J. A. Feldman and D. Gries,Translator writing systems, Comm. A.C.M. 11 (1968), 77–113.
D. Gries,Compiler Construction for Digital Computers, Wiley, 1971.
J. E. Hopcroft and J. D. Ullman,Formal Languages and their Relation to Automata, Addison-Wesley, 1969.
P. Z. Ingerman,A Syntax Oriented Translator, Academic Press, 1966.
D. E. Knuth,Semantics of context-free languages, Mathematical Systems Theory 2 (1968), 127–145.
D. E. Knuth,Examples of formal semantics, in «Symposium on Semantics of Algorithmic Languages», Springer-Verlag, 1971, pp. 212–235.
C. Strachey,A general purpose macrogenerator, Computer J. 8 (1965–1966), 225–241.
P. Wegner,Programming Languages, Information Structures and Machine Organization, McGraw-Hill, 1968.
Author information
Authors and Affiliations
Rights and permissions
About this article
Cite this article
Abramson, H.D. A syntax directed macro processor. BIT 14, 261–272 (1974). https://doi.org/10.1007/BF01933225
Received:
Revised:
Issue Date:
DOI: https://doi.org/10.1007/BF01933225