diff --git a/Labgen/lab2 b/Labgen/lab2 new file mode 100644 index 0000000000000000000000000000000000000000..326c01fe9a5149cd77d079a72d17842d5f00f833 --- /dev/null +++ b/Labgen/lab2 @@ -0,0 +1,12 @@ +max = 5; +SIZE max,max+1; +IN (2,0); +OUT (0,max) (max,0) ; +# les murs +WALL PTA (3,0) (3,1) (4,2) (4,3) (max,max-1); +WALL PTD (0,2) (1,-1) (0,1):3 (1,0) (1,+1) (1,0); +# les trous de vers +WH (3,4) --> (2,max) ; # W0 w0 +WH (0,1) --> (0,3) ; # W1 w1 +# la porte magique (A et ai) +MD (3,2) W (0,0) E (max,2) ; diff --git a/Labgen/labgen.y b/Labgen/labgen.y index 33ab99d276f6ac7e1ffd5dcd34061ee1bc871206..fa40e2050ccf925441f6765c5e893ddbee981d08 100644 --- a/Labgen/labgen.y +++ b/Labgen/labgen.y @@ -209,7 +209,7 @@ int main(int argc, char *argv[]){ printf("Reading input from file succeded: %s\n",argv[1]); yyin = fp; - listevars.last=0; + listevars.last = 0; yyparse(); } else {