#!/bin/bash if [ $# != "1" ] then echo;echo;echo; echo "Falta o parametro" echo;echo;echo; exit fi rm -f $1.tab.* rm -f lex.yy.* rm -f *~ rm -f tpf3 bison -d $1.y /bin/echo "Pausa depois do Bison ...................................";#read c flex $1.flex /bin/echo "Pausa depois do Flex ....................................";#read c gcc -g -c lex.yy.c /bin/echo "Pausa depois de compilar output do Flex .................";#read c gcc -g -c $1.tab.c /bin/echo "Pausa depois de compilar output do Bison ................";#read c gcc -o $1 lex.yy.o $1.tab.o -lfl && \ /bin/echo "Foi feita a compilacao final ............................"