Applet: If you're viewing this page in a
Java Plug-in 1.2.2 capable
browser (such as, on Microsoft Windows,
Communicator 3.00 or later, or
IE 3.02 or
later, or on Solaris, Communicator 4.05 or later), you should be able to
try out Jeva and Jexa below. (It may
take a few minutes to download the plug-in if necessary, and then load
the ~350KB jar file over the network and start the applet.) If your browser
does not yet support a Java 1.2 plug-in, you can point the Sun's JDK
appletviewer at the URL
of this page to run the applet button:
appletviewer http://www.ai.mit.edu/people/caroma/tools/1999-06-09/JevaGUIApplet.html
Appletviewer won't display this surrounding text.
Alternatively, if your browser does support Java 1.1, you
may still try out an earlier
version.
|
|
3 + 4 and press "Evaluate".
import java.util.*;
new Date(System.currentTimeMillis())
Note that Jeva parses as much as it can to create an
statement or expression, leaving the rest in the pane, so press
"Evaluate" once for the import statement, and then
once again for the new expression.
localResults.get(n)
Date myDate = (Date) localResults.get(2);
import java.text.DateFormat;
DateFormat.getDateInstance(DateFormat.SHORT,
Locale.JAPAN).format(myDate)
localOut.println("Hello."); (If used in an
application rather than from an applet's security box, JevaGUI can
redirect System.out to the result pane as well.)
localApplet
to the applet, via which other applets on the page may be accessed.
myDate and press "Evaluate", then
press "Examine Result".
Jexa.examine(myDate)
import edu.mit.ai.psg.jexa.Jexa
for your convenience.)
~1*2+3^4%5|6&7>>>8 and press "Parse";
then press "Examine Result" to examine the
resulting parse tree to see if you understand the precedence order.
Jexa.examine(localApplet)
import java.awt.*;
Label myTitle = (Label) Jexa.mousedObject;
myTitle.setForeground(Color.lightGray);
myTitle.getParent().setBackground(Color.decode("#800000"));
This page describes research done at the Artificial Intelligence Laboratory of the Massachusetts Institute of Technology. Support for this research was provided in part by the Advanced Research Projects Agency of the Department of Defense under contracts MDA972-95-1-0018 (North East Regional Consortium Grant) and N66001-95-C-8611 (Computer Aided Education and Training Initiative), and the MIT Department of Electrical Engineering and Computer Science. Support for this research has also been received from IBM, which has generously donated Thinkpad pen computers, and from Microsoft, which has generously donated software.