init premiers & suivants
This commit is contained in:
@@ -12,12 +12,16 @@ FILE *yyin;
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
yyin = fopen(argv[1], "r");
|
||||
if(yyin == NULL){
|
||||
if(argc == 0 && yyin == NULL){
|
||||
fprintf(stderr, "impossible d'ouvrir le fichier %s\n", argv[1]);
|
||||
exit(1);
|
||||
}
|
||||
|
||||
// test_yylex_internal(yyin);
|
||||
//test_yylex_internal(yyin);
|
||||
|
||||
initialise_premiers();
|
||||
initialise_suivants();
|
||||
|
||||
uniteCourante = yylex();
|
||||
|
||||
programme();
|
||||
|
||||
Reference in New Issue
Block a user