Changeset 774 for trunk/AGRIF/LIB/fortran.lex
- Timestamp:
- 2007-12-18T17:45:53+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/LIB/fortran.lex
r663 r774 31 31 /* knowledge of the CeCILL-C license and that you accept its terms. */ 32 32 /******************************************************************************/ 33 /* version 1. 6*/33 /* version 1.7 */ 34 34 /******************************************************************************/ 35 35 %x parameter 36 36 %s character 37 %x donottreat 37 38 %{ 38 39 #include <math.h> … … 62 63 {\ 63 64 strcat(curbuf,yytext); \ 65 Save_Length(curbuf,38); \ 64 66 strcpy(motparse,yytext);\ 67 Save_Length(motparse,32); \ 65 68 colnum = colnum + strlen(motparse);\ 66 /*printf("motparse = %s %d\n",motparse,strlen(motparse)); */\67 69 ECHO; \ 68 70 }\ … … 199 201 public {return TOK_PUBLIC;} 200 202 private {return TOK_PRIVATE;} 201 \([ \t]*in[ \t]*\) {return TOK_IN;}203 in {strcpy(yylval.nac,yytext);return TOK_IN;} 202 204 ^[ \t]*data[ \t]+ {strcpy(yylval.na,yytext);return TOK_DATA;} 203 205 continue return TOK_CONTINUE; 204 206 go[ \t]*to {return TOK_PLAINGOTO;} 205 \([ \t]*out[ \t]*\) {return TOK_OUT;}206 \([ \t]*inout[ \t]*\) {return TOK_INOUT;}207 out {strcpy(yylval.nac,yytext);return TOK_OUT;} 208 inout {strcpy(yylval.nac,yytext);return TOK_INOUT;} 207 209 intrinsic {return TOK_INTRINSIC;} 208 210 then {return TOK_THEN;} … … 296 298 } 297 299 } 300 ^"!$AGRIF_DO_NOT_TREAT\n" BEGIN(donottreat); 301 <donottreat>^"!$AGRIF_END_DO_NOT_TREAT\n" BEGIN(INITIAL); 302 <donottreat>.*\n 298 303 {COMMENTAIRESFORTRAN90} { 299 304 colnum = 0; … … 312 317 if (!strcasecmp(curfile,mainfile)) 313 318 { 314 printf("%s line %d, fi chier%s\n",s,line_num_fortran,curfile);319 printf("%s line %d, file %s\n",s,line_num_fortran,curfile); 315 320 } 316 321 else 317 322 { 318 printf("%s line %d, fi chier%s\n",s,line_num_fortran_common,curfile);323 printf("%s line %d, file %s\n",s,line_num_fortran_common,curfile); 319 324 } 320 325 }
Note: See TracChangeset
for help on using the changeset viewer.