Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to main content

A syntax directed macro processor

  • Published:
BIT Numerical Mathematics Aims and scope Submit manuscript

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.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  1. Harvey Abramson,Theory and Application of a Bottom-up Syntax-directed Translator, A.C.M. Monograph Series, Academic Press, 1973.

  2. Alfred V. Aho and Jeffrey D. Ullman,The Theory of Parsing, Translation, and Compiling, 2 volumes, Prentice-Hall, 1972, 1973.

  3. Alfred V. Aho and Jeffrey D. Ullman,Translations on a context-free grammar, Information and Control 19 (1971), 439–475.

    Article  Google Scholar 

  4. Alfred V. Aho and Jeffrey D. Ullman,Properties of syntax directed translations, J. Computer and System Sciences, 3 (1969), 319–334.

    Google Scholar 

  5. Alfred V. Aho and Jeffrey D. Ullman,Syntax directed translations and the pushdown assembler, J. Computer and System Sciences 3 (1969), 37–56.

    Google Scholar 

  6. Alfred V. Aho and Jeffrey D. Ullman,A General Theory of Translation, Mathematical Systems Theory 3 (1969), 193–221.

    Article  Google Scholar 

  7. Alfred V. Aho and Jeffrey D. Ullman,Characterizations and Extensions of Pushdown Translations 5 (1971), 172–192.

    Google Scholar 

  8. J. A. Feldman and D. Gries,Translator writing systems, Comm. A.C.M. 11 (1968), 77–113.

    Google Scholar 

  9. D. Gries,Compiler Construction for Digital Computers, Wiley, 1971.

  10. J. E. Hopcroft and J. D. Ullman,Formal Languages and their Relation to Automata, Addison-Wesley, 1969.

  11. P. Z. Ingerman,A Syntax Oriented Translator, Academic Press, 1966.

  12. D. E. Knuth,Semantics of context-free languages, Mathematical Systems Theory 2 (1968), 127–145.

    Article  Google Scholar 

  13. D. E. Knuth,Examples of formal semantics, in «Symposium on Semantics of Algorithmic Languages», Springer-Verlag, 1971, pp. 212–235.

  14. C. Strachey,A general purpose macrogenerator, Computer J. 8 (1965–1966), 225–241.

    Article  Google Scholar 

  15. P. Wegner,Programming Languages, Information Structures and Machine Organization, McGraw-Hill, 1968.

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Download citation

  • Received:

  • Revised:

  • Issue Date:

  • DOI: https://doi.org/10.1007/BF01933225

Keywords