projet_systeme/script.sh

22 lines
349 B
Bash
Raw Normal View History

2021-03-18 12:18:42 +01:00
bison -d -t analyse_syntaxique.y -v
flex analyse_lexicale.lex
2021-03-22 12:45:21 +01:00
gcc -w *.c -ly
2021-03-18 12:18:42 +01:00
echo "
2021-05-09 19:55:27 +02:00
int fonction1(int * a){
int b = *a;
printf(b);
2021-05-04 15:24:57 +02:00
return 1;
}
2021-03-18 12:18:42 +01:00
int main(){
2021-05-09 19:55:27 +02:00
int l = 21;
int * p = &l;
int c = fonction1(p);
printf(c);
2021-04-30 17:08:29 +02:00
p = &c;
*p = 2;
2021-05-09 19:55:27 +02:00
printf(c);
2021-04-30 17:08:29 +02:00
return 0;
2021-03-18 12:18:42 +01:00
}
" | ./a.out