projet_systeme/script.sh
2021-05-09 19:55:27 +02:00

22 lines
No EOL
349 B
Bash
Executable file

bison -d -t analyse_syntaxique.y -v
flex analyse_lexicale.lex
gcc -w *.c -ly
echo "
int fonction1(int * a){
int b = *a;
printf(b);
return 1;
}
int main(){
int l = 21;
int * p = &l;
int c = fonction1(p);
printf(c);
p = &c;
*p = 2;
printf(c);
return 0;
}
" | ./a.out