pkg://java_cup-0.10-0.k.1jpp.src.rpm:195092/java_cup_v10k.tar.gz
info downloads
./ 40750 31676 763 0 6765374656 11001 5 ustar cananian cananian INSTALL 100750 31676 763 5276 6746333567 12002 0 ustar cananian cananian #!/bin/csh -f
#
# Cup install and test script
# Scott Hudson 8/31/95
#
# Last revision 7/3/96 (for v0.10a)
# By Frank Flannery
#
# Last revision 11/16/96 (for v0.10b)
# By Daniel Wang
#
# Updated version number 7/24/99 for 0.10k
# By C. Scott Ananian
echo
echo "================================"
echo "Installing and testing Cup v0.10k"
echo "================================"
echo
# check for this directory in CLASSPATH
#
set cwd = `pwd`
set c_path = `printenv CLASSPATH`
if ($c_path !~ "*$cwd*") then
echo " "
echo "WARNING:"
echo "WARNING: The current directory does not appear in your CLASSPATH"
echo "WARNING: it will be added for this install/test only"
echo "WARNING:"
echo " "
setenv CLASSPATH $cwd':'$c_path
echo "CLASSPATH now set to "
printenv CLASSPATH
endif
# change to the demo directory
#
echo " "
echo "changing to simple_calc subdirectory..."
echo "cd java_cup/simple_calc"
cd java_cup/simple_calc
# remove old copies of parser.java and sym.java
#
echo " "
echo "removing any old copies of parser.java and sym.java..."
echo "rm -f parser.java sym.java"
rm -f parser.java sym.java
# compile java_cup and run it against the demo program
# the -cs (for "checksource") option here will force the
# java_cup and java_cup.runtime source to be compiled prior
# to running it.
#
echo " "
echo "compiling java_cup then generating demo program..."
echo "java -cs java_cup.Main < parser.cup"
java -cs java_cup.Main < parser.cup
# make sure parser.java and sym.java now exist
#
if ( ! -e parser.java) then
echo " "
echo "ERROR: for some reason parser.java was not created"
echo "ERROR: install was not successful"
exit 1
endif
if ( ! -e sym.java) then
echo " "
echo "ERROR: for some reason sym.java was not created"
echo "ERROR: install was not successful"
exit 1
endif
# run the demo
# again, the -cs option will cause compilation of all the parts
# of the demo program (including parser.java and sym.java that
# should have been generated in the previous step).
#
echo "removing old test results..."
echo "rm -f test_results"
rm -f test_results
echo " "
echo "executing the demo program..."
echo "echo '1*-2+2;' | java -cs java_cup.simple_calc.Main >& test_results"
echo '1*-2+2;' | java -cs java_cup.simple_calc.Main >& test_results
# compare with standard results
#
set res = `tail -1 test_results`
if ("$res" !~ "= 0") then
echo "ERROR: test program produced the wrong results"
echo "ERROR: output was:"
cat test_results
echo "ERROR: install was not successful"
rm -f test_results
exit 2
endif
# all is well
#
rm -f test_results
echo " "
echo "=============================="
echo "Install and test was successful"
echo "=============================="
exit 0
README 100640 31676 763 4062 6746333612 11606 0 ustar cananian cananian This directory contains the CUP v0.10k release in source form. You should
find the following files and subdirectories in this release:
README This file.
INSTALL.QUICK Quick installation instruction.
CHANGELOG A brief overview of the changes in v0.10k
java_cup A subdirectory containing CUP, runtime, and test sources.
cup_logo.gif A logo image used by the manual.
manual.html A user's manual in HTML format. (OLD)
INSTALL A shell script to install and test the system
To get started quickly, read INSTALL.QUICK. If you are on a Windows
platform, you might want to look in the winnt subdirectory.
For complete installation information, keep reading.
To install the release, copy the contents of this directory (if you
haven't done so already) into a "classes" directory accessible to the
java interpreter (i.e., a directory that is listed in the colon
separated list of directories in your CLASSPATH environment variable).
Note: if you have an older version of the system already accessible
from your CLASSPATH you will want to temporarily remove it to avoid
conflicts.
Once files have been copied to an appropriate location, you should be able to
both compile and test the system by executing the INSTALL shell script
(sorry, but non Unix users are still on their own). Again, be sure that
you have placed these sources in a directory listed in your CLASSPATH
environment variable (or changed your CLASSPATH to include this directory).
A manual page that explains the operation and use of the system can be found
in manual.html and from the CUP home page mentioned below.
Bug reports regarding the installation
process or the system as a whole should be sent to
<cananian@alumni.princeton.edu> with "JavaCUP" in the subject.
The CUP home page where the latest information regarding CUP can be found
(e.g., new releases) is:
http://www.cs.princeton.edu/~appel/modern/java/CUP/
Enjoy,
Scott Hudson
Graphics, Visualization, and Usability Center
Georgia Institute of Technology
Last updated: 23-Jul-1999 [CSA]
cup_logo.gif 100640 31676 763 17566 6746333325 13262 0 ustar cananian cananian GIF89a ̻wwwfffUUUDDD333""" , pI8ͻ$A q I-rq噮3-D,Ȥrl:Шt3 ;_tn|$Cv&xz[g~5tu%Vd<035cY=| EW(e/^|pU<?2Ǻ]"{/?įY
-q;}A*҄HA#n0KV/2V3jn\H]ȲHLbϐδbϟ@,p.e"zh8+JJNN$Zt
)p@A
@Ԃ."p@ջxIe{=?X .X81P@@G@1xe4hϵxI M6mr^\ Q$^` a\(m }0WvnͲTKH° fFLN3~Y'8@=`Wu(-8 0 Xh{4v5ptYӜu>7 ͍8؍4$}Jo=iC
EeEcWEP@XLbI!p@$# 'qix.cwIdBeu-ȒGPt=dgƥ""bXew!]Le}!e|.ĺ6
M(.$ ^X)]bC7y#t *'V7t)x u9iDB'a(:{htvN@ da"JA kbabe6Aggit@TňY)Frw]mР$bz!Xbsg1"c IT)-5E!ҔXDzmLrbJea%`2iy\Qf`>ۡ-A&z 0Dsv<_g-<y. &) Q'?I&0"