Java Reference
In-Depth Information
1.7 Further Readings
The Java programming language is fully described in [Gosling et al., 2005]. The Java Virtual
Machine is described in [Lindholm and Yellin, 1999].
Other
classic
compiler
texts
include
[Aho
et
al.,
2007],
[Appel,
2002],
[Cooper and Torczon, 2011], [Allen and Kennedy, 2002], and [Muchnick, 1997].
A reasonable introduction to testing is [Whittaker, 2003]. Testing using the JUnit frame-
work is nicely described in [Link and Frohlich, 2003] and [Rainsberger and Stirling, 2005]. A
good introduction to extreme programming, where development is driven by tests, is [Beck
and Andres, 2004].
1.8 Exercises
Exercise 1.1. We suggest you use either Emacs or Eclipse for working with the j-- compiler.
In any case, you will want to get the j-- code tree onto your own machine. If you choose to
use Eclipse, do the following.
a. Download Eclipse and install it on your own computer. You can get Eclipse from http
://www.eclipse.org .
b. Download the j-- distribution from http://www.cs.umb.edu/j--/ .
c. Follow the directions in Appendix A for importing the j-- code tree as a project into
Eclipse.
Exercise 1.2. Now is a good time to begin browsing through the code for the j-- compiler.
Locate and browse through each of the following classes.
a. Main
b. Scanner
c. Parser
d. JCompilationUnit
e. JClassDeclaration
f. JMethodDeclaration
g. JVariableDeclaration
h. JBlock
i. JMessageExpression
j. JVariable
k. JLiteralString
 
Search WWH ::




Custom Search