Gold University of Minnesota M. Skip to main content.University of Minnesota. Home page.
 

  Copper downloads

What's inside.

MELT Home

People

Papers

Software
- Silver
- Copper
- ableJ - Java 1.4

Melt public wiki

   

Department of Computer Science and Engineering

University of Minnesota Software Engineering Center

Institute of Technology

University of Minnesota
 
 
[ 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.
  1. Download CopperCompiler-0.5.jar into some convenient location, e.g., /usr/lib/java.
  2. Download copper_examples.tar.gz and untar it; change into the examples/ directory therein.
  3. 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
  4. Compile the parser, using the command
    % javac -classpath /usr/lib/java/CopperCompiler-0.5.jar:. mathgrammar/MathExampleSimple.java
  5. Compile the driver class for the parser, using the command
    % javac -classpath /usr/lib/java/CopperCompiler-0.5.jar:.
                              mathgrammar/drivers/MathExampleSimpleDriver.java
  6. Run the driver class using the command
    % java -classpath /usr/lib/java/CopperCompiler-0.5.jar:.
                             mathgrammar/drivers/MathExampleSimpleDriver
 
The University of Minnesota is an equal opportunity educator and employer.