[
Info
|
Downloads
|
User Manual
| Publications
| Bugzilla site
|
License
]
Copper Downloads
- CopperCompiler-0.5.jar
- a Java JAR file
containing all the code of Copper. It can be used for generating and
running Copper parsers and scanner.
- CopperRuntime-0.5.jar - a JAR file
containing only the parser runtime. Can be used only for running
generated parsers. If you download the above JAR file, this one is
not needed.
- copper_examples.tar.gz -
contains a set of demonstrative examples. For instructions on how to
run these, see the README files inside the tarball or the Quick Start
Guide below.
- AspectJ1.4-0.5.1.tar - A Copper
specification of AspectJ 1.4 derived from the JavaCup grammar for Java
1.4 and the AspectBench Compiler AspectJ extensions to Java.
Note: Some comments in this specification descibe the lexical
syntax of the language. However, parts of this specification were
automatically derived from our Silver specification of the language.
Thus, the nonterminals and their productions are listed in
alphabetical order. We are rewriting this to be more human readable.
Stay tuned.
If you have any problems downloading, installing, or running Copper
or the example specifications, feel free to contact August
Schwerdfeger or Eric Van Wyk, evw@cs.umn.edu, with your questions.
Quick Start Guide
Here is a quick guide to compiling and running one of the parsers in the
example tarball, which recognizes four-function arithmetic.
- Download CopperCompiler-0.5.jar into some convenient location, e.g., /usr/lib/java.
- Download copper_examples.tar.gz and untar it; change into the examples/ directory therein.
- Generate the Java source code of the parser, using the command
% java -jar /usr/lib/java/CopperCompiler-0.5.jar mathgrammar/MathExampleSimple.copper
> mathgrammar/MathExampleSimple.java
- Compile the parser, using the command
% javac -classpath /usr/lib/java/CopperCompiler-0.5.jar:. mathgrammar/MathExampleSimple.java
- Compile the driver class for the parser, using the command
% javac -classpath /usr/lib/java/CopperCompiler-0.5.jar:.
mathgrammar/drivers/MathExampleSimpleDriver.java
- Run the driver class using the command
% java -classpath /usr/lib/java/CopperCompiler-0.5.jar:.
mathgrammar/drivers/MathExampleSimpleDriver
|