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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Aho, A.V., Ullman, J.D.: Principles of Compiler Design. Addison-Wesley, London, UK (1977)
Gamma, E., Helm, R., Johnson, R., Vlissides, J.: Design Patterns–Elements of Reusable Object-Oriented Software. Professional Computing (1995)
Lorenz, D.H.: Tiling Design Patterns–A Case Study Using the Interpreter Pattern. ACM SIGPLAN Notices 32, 206–217 (1997)
Appel, A.W., Palsberg, J.: Modern Compiler Implementation in Java. Camebridge University Press, Camebridge (2002)
Levine, J.R., Mason, T., Brown, D.: Lex & Yacc. O’Reilly & Associates (1992)
Thai, T.L., Lam, H.: .NET Framework Essentials. O’Reilly (2002)
Dobler, H.: Coco-2: A new compiler compiler. SIGPLAN Notices 25 (1990)
Knuth, D.E.: Semantics of context-free languages. Springer, New York (1967)
McFlynn, D., Weissman, P.F.: Using JavaCC and SableCC. 4UPress (2004)
Pitzer, M.: An object-oriented compiler generator. Bachelor Thesis (2006)
Author information
Authors and Affiliations
Editor information
Rights 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)