Last active
December 15, 2015 10:29
-
-
Save gdetrez/5245991 to your computer and use it in GitHub Desktop.
BNFC quick testing routine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# linux | |
cd `mktemp -d` | |
wget http://bnfc.digitalgrammars.com/download/bnfc-2.5.0rc1-linux.gz # Change me! | |
gzip -d bnfc-*.gz | |
chmod +x bnfc-* | |
wget https://raw.github.com/BNFC/bnfc/master/examples/Calc.cf | |
./bnfc-* -m Calc.cf | |
make | |
echo "2+3*4" | ./TestCalc | |
# CYGWIN | |
cd `mktemp -d` | |
wget http://bnfc.digitalgrammars.com/download/bnfc-2.5.0rc1-win.exe | |
chmod +x bnfc-* | |
wget --ca-directory=/usr/ssl/certs https://raw.github.com/BNFC/bnfc/master/examples/Calc.cf | |
./bnfc-* -m Calc.cf | |
make | |
echo "2+3*4" | ./TestCalc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment