Abstract
Traditionally books on compiler construction focus on procedural languages leaving some questions on compilation of object-oriented languages unanswered. This article presents some problems found in the building of a compiler for the object-oriented language Green using Java. The solutions used for these problems are exposed and whenever possible alternatives are discussed. We hope to provide programmers with some hints and caveats on compilation of object-oriented languages.
- Aho, Alfred V. and Ullman, Jeffrey D. Principles of Compiler Design. Addison-Wesley Publishing, 1977. Google ScholarDigital Library
- Ananian, C. Scott. JLex: A Lexical Analyzer Generator for Java. http://www.cs.princeton.edu/~appel/modern/java/JLexGoogle Scholar
- Appel, Andre W. Modern Compiler Implementation in Java. Cambridge University Press, 1998. Google ScholarDigital Library
- Grune, D.; Bal, H.; Jacobs, J. H. and Langendoen, K. Modern Compiler Design. John Wiley & Sons, 2000. Google ScholarDigital Library
- Guimarães, José de Oliveira. The Green Language. Available at http://www.dc.ufscar.br/~jose/green/green.htm.Google Scholar
- Guimarães, José de Oliveira. The Class Generation. Available at http://www.dc.ufscar.br/~jose/courses/cc/classgen.html.Google Scholar
- Hudson, Scott E. CUP Parser Generator for Java. http://www.cs.princeton.edu/~appel/modern/java/CUPGoogle Scholar
Recommendations
Teaching compiler construction and language design: making the case for unusual compiler projects with postscript as the target language
SIGCSE '07: Proceedings of the 38th SIGCSE technical symposium on Computer science educationThis paper presents an unusual programming language, textttklx, illustrating the type of compiler construction projects the author uses successfully to accompany a mostly traditional lecture on compilers.The target processor of textttklx is the ...
Teaching compiler construction and language design: making the case for unusual compiler projects with postscript as the target language
This paper presents an unusual programming language, textttklx, illustrating the type of compiler construction projects the author uses successfully to accompany a mostly traditional lecture on compilers.The target processor of textttklx is the ...
A domain-specific language for building self-optimizing AST interpreters
GPCE '14Self-optimizing AST interpreters dynamically adapt to the provided input for faster execution. This adaptation includes initial tests of the input, changes to AST nodes, and insertion of guards that ensure assumptions still hold. Such specialization ...
Comments