Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #flex trabalho2.l
- #yacc -dv trabalho2.y
- #gcc lex.yy.c y.tab.c -o lex
- if [ "$1" = "1" ]; then
- folder="arquivos_sem_erros"
- #arqs=$(ls arquivos_sem_erros/entrada)
- else
- if [ "$1" = "2" ]; then
- folder="arquivos_com_1_erro"
- #arqs=$(ls arquivos_com_1_erro/entrada)
- else
- exit
- fi
- fi
- for i in $(ls $folder/entrada)
- do
- echo $i
- #./lex < $folder/entrada/$i > $i
- #diff $i $folder/saida/$i
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement