22 lines
No EOL
349 B
Bash
Executable file
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 |