skip to main content
article

Good design principles in a compiler university course

Published:01 April 2002Publication History
Skip Abstract Section

Abstract

This paper presents what aims to be an example of good design principles applied to compiler construction. To be more specific, it presents an interpreter of a very simple object oriented language, called SmallScript, that has been designed to be taught in a Compiler University course. Our aim is not to develop a new, revolutionary language, neither to show a spectacular advance in some research field of compiler construction. Instead, as university teachers, we aim to offer both students and teachers an example of how a modern interpreter can be designed, focusing on object orientation and using modern tools like JavaCC and JJTrree.

References

  1. Java Compiler Compiler™ (JavaCC). www.webgain. com/products/java_ccGoogle ScholarGoogle Scholar
  2. ANTLR. www. antlr.orgGoogle ScholarGoogle Scholar
  3. A. V. Aho, R. Sethi, J. D. Ullman. Compilers: Principles, Techniques and Tools. Addison-Wesley, 1986. Google ScholarGoogle ScholarDigital LibraryDigital Library
  4. A. I Holub. Compiler Design in C. Prentice Hall, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  5. E. Gamma et al. Design Patterns. Elements of Reusable Object-Oriented Software. Prentice Hall, 1990. Google ScholarGoogle ScholarDigital LibraryDigital Library
  6. M. Grand. Patterns in Java: a catalog of reusable design patterns illustrated with UML. John Wiley & Sons, 1999 (Volume 1) and 2000 (Volume 2). Google ScholarGoogle ScholarDigital LibraryDigital Library
  7. M. Fowler. Refactoring: Improving the Design of Existing Code. Addison-Wesley Longman, 1999. Google ScholarGoogle ScholarDigital LibraryDigital Library
  8. J. Langr. Essential Java Style: Patterns for Implementation. Prentice Hall PTR, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library
  9. J. Gosling et al. The Java Language Specification. Second Edition. Addison-Wesley, 2000. Google ScholarGoogle ScholarDigital LibraryDigital Library

Index Terms

  1. Good design principles in a compiler university course
      Index terms have been assigned to the content through auto-classification.

      Recommendations

      Comments

      Login options

      Check if you have access through your login credentials or your institution to get full access on this article.

      Sign in

      Full Access

      PDF Format

      View or Download as a PDF file.

      PDF

      eReader

      View online with eReader.

      eReader