cup
Boris Hollas
hollas at informatik.htw-dresden.de
Mon Aug 16 14:18:58 UTC 2010
Hello,
I have several problems with cup 0.11a+20060608-2 on Ubuntu 10.04:
- according to the documentation for cup, cup is run with
java -jar java-cup-11a.jar options inputfile
This doesn't work because java-cup-11a.jar isn't present on the
system. Instead, the file is named cup-0.11a.jar in /usr/share/java.
This should be changed to be consistent with the documentation.
- running javac parser.java on the resultant parser produces lots of
errors:
parser.java:7: package java_cup.runtime does not exist
import java_cup.runtime.*;
^
...
The same is true if javac lexer.java is invoked on a lexer generated
by JFlex using the %cup option:
lexer.java:3: package java_cup.runtime does not exist
import java_cup.runtime.*;
^
...
However, I can compile the lexer with java-cup-11a-runtime.jar
downloaded from the cup homepage to my working directory and
javac -classpath ./java-cup-11a-runtime.jar
Because find /usr/ -name "*runtime*" | grep cup doesn't find anything,
something might be missing.
--
Best regards,
Boris Hollas
More information about the Ubuntu-devel-discuss
mailing list