Add compile.sh
Co-authored-by: Ezequiel Bellver <ebellver@itba.edu.ar> Co-authored-by: Juan Barmasch <jbarmasch@itba.edu.ar>
This commit is contained in:
parent
ead30415e4
commit
c7dfde8011
|
@ -0,0 +1,11 @@
|
|||
#!/bin/sh
|
||||
|
||||
rm src/frontend/lexical-analysis/flex-scanner.c src/frontend/syntactic-analysis/bison-parser.c src/frontend/syntactic-analysis/bison-parser.h
|
||||
cmake -S . -B bin
|
||||
cd bin
|
||||
make
|
||||
if [ -f "../$1" ]; then
|
||||
cat "../$1" | ./Compiler
|
||||
else
|
||||
echo "$1" | ./Compiler
|
||||
fi
|
Loading…
Reference in New Issue