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 JevaES and Jexa below. (It may take a few minutes to download the
plug-in if necessary; starting the plug-in the first time may also take a
dozen seconds or so. Once the plug-in loads ~368KB of JevaESUI jar file
over the network, the applet should run quickly.) 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/JevaESGUIApplet.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 JevaES 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, JevaESGUI can
redirect System.out to the result pane as well.)
localApplet
to the applet, via which other applets on the page may be accessed
as localApplet.getAppletList() .
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)
Jexa.mousedObject
and you'll see that it has been set to the label.
import java.awt.*;
import javax.swing.*;
JLabel myTitle = (JLabel) 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.