#! /bin/bash

GRAMMARDIR="Source/grammar"

LEXER=Sentence

CJFLEXJAR=`toNative.bash "$LIB330/JFlex.jar"`
CLEXER=`toNative.bash "$GRAMMARDIR/$LEXER.jflex"`

rm -f "$GRAMMARDIR"/"$LEXER.java" jflex.error

java -jar "$CJFLEXJAR" "$CLEXER" &> jflex.error

cat jflex.error