Skip to main content

An Object-Oriented and Generic Compiler Generator

  • Conference paper
Computer Aided Systems Theory – EUROCAST 2007 (EUROCAST 2007)

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 4739))

Included in the following conference series:

  • 1322 Accesses

Abstract

Object-oriented software development has become the de-facto standard programming paradigm used in modern software systems. Additionally genericity has grown more popular since the enhancement of Java and C#. This paper attempts to reconsider the principles of compiler construction from this modern, object-oriented point of view. We present a multi-paradigm, mainly object-oriented and generic approach for creating a compiler generator using a combination of the Interpreter pattern and the Visitor pattern. A prototype of such an object-oriented and generic compiler generator has also been developed using C# 2.0 and will serve as a reference to explain the design throughout this paper.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 129.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 169.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. Aho, A.V., Ullman, J.D.: Principles of Compiler Design. Addison-Wesley, London, UK (1977)

    Google Scholar 

  2. Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns–Elements of Reusable Object-Oriented Software. Professional Computing (1995)

    Google Scholar 

  3. Lorenz, D.H.: Tiling Design Patterns–A Case Study Using the Interpreter Pattern. ACM SIGPLAN Notices 32, 206–217 (1997)

    Article  Google Scholar 

  4. Appel, A.W., Palsberg, J.: Modern Compiler Implementation in Java. Camebridge University Press, Camebridge (2002)

    MATH  Google Scholar 

  5. Levine, J.R., Mason, T., Brown, D.: Lex & Yacc. O’Reilly & Associates (1992)

    Google Scholar 

  6. Thai, T.L., Lam, H.: .NET Framework Essentials. O’Reilly (2002)

    Google Scholar 

  7. Dobler, H.: Coco-2: A new compiler compiler. SIGPLAN Notices 25 (1990)

    Google Scholar 

  8. Knuth, D.E.: Semantics of context-free languages. Springer, New York (1967)

    Google Scholar 

  9. McFlynn, D., Weissman, P.F.: Using JavaCC and SableCC. 4UPress (2004)

    Google Scholar 

  10. Pitzer, M.: An object-oriented compiler generator. Bachelor Thesis (2006)

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Roberto Moreno Díaz Franz Pichler Alexis Quesada Arencibia

Rights and permissions

Reprints and permissions

Copyright information

© 2007 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Pitzer, M., Dobler, H. (2007). An Object-Oriented and Generic Compiler Generator. In: Moreno Díaz, R., Pichler, F., Quesada Arencibia, A. (eds) Computer Aided Systems Theory – EUROCAST 2007. EUROCAST 2007. Lecture Notes in Computer Science, vol 4739. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-540-75867-9_17

Download citation

  • DOI: https://doi.org/10.1007/978-3-540-75867-9_17

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-75866-2

  • Online ISBN: 978-3-540-75867-9

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics