#! /bin/bash
#	ulimit -t 10
DIR="$1"
shift
CCUPJAR=`toNative.bash "$LIB330/java_cup_runtime.jar"`
NATIVEDIR=`toNative.bash "$DIR"`
rm -f "$DIR/program.err" "$DIR/program.parse" "$DIR/program.print" "$DIR/usercode.user.s"
rm -f "$DIR/sim.err" "$DIR/sim.out"
java -classpath "run.jar$CPSEP$CCUPJAR" Main -dir "$NATIVEDIR" "$@"
