| java.lang.Object xtc.util.Tool xtc.lang.Java
Java | public class Java extends Tool (Code) | | The Java tool.
Parser Runtime Classes
The Java parsers supported by this tool are generated by
Rats!, JavaCC, and ANTLR, respectively. Each of these
parsers requires a set of runtime classes. The runtime classes for
the Rats! generated parser are (obviously) part of xtc. The
runtime classes for the JavaCC generated parser are contained in
the
xtc.lang.javacc package. However, while the actual
parser generated by ANTLR is contained in the
xtc.lang.antlr paackage, the runtime classes are not.
Consequently, running this tool requires access to the
antlr.jar file that is part of ANTLR's distribution.
In particular, antlr.jar must either be in the local
classpath (when running this tool within the development tree) or
in the same directory as the xtc.jar file (when
running this tool from the binary distribution). In the latter
case, xtc's JAR file manifest already contains the appropriate
classpath declaration.
author: Robert Grimm version: $Revision: 1.37 $ |
Field Summary | |
protected Method | dump The method for printing the parser's memoization table. | protected Method | profile The method for printing the memoization table's profile. |
Constructor Summary | |
public | Java() Create a new Java tool. |
dump | protected Method dump(Code) | | The method for printing the parser's memoization table.
|
profile | protected Method profile(Code) | | The method for printing the memoization table's profile.
|
Java | public Java()(Code) | | Create a new Java tool.
|
main | public static void main(String[] args)(Code) | | Run the tool with the specified command line arguments.
Parameters: args - The command line arguments. |
prepare | public void prepare()(Code) | | |
|
|