New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 774 for trunk/AGRIF/LIB/fortran.lex – NEMO

Ignore:
Timestamp:
2007-12-18T17:45:53+01:00 (17 years ago)
Author:
rblod
Message:

Update Agrif, see ticket:#39

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/AGRIF/LIB/fortran.lex

    r663 r774  
    3131/* knowledge of the CeCILL-C license and that you accept its terms.           */ 
    3232/******************************************************************************/ 
    33 /* version 1.6                                                                */ 
     33/* version 1.7                                                                */ 
    3434/******************************************************************************/ 
    3535%x parameter 
    3636%s character 
     37%x donottreat 
    3738%{ 
    3839#include <math.h> 
     
    6263           {\ 
    6364              strcat(curbuf,yytext); \ 
     65              Save_Length(curbuf,38); \ 
    6466              strcpy(motparse,yytext);\ 
     67              Save_Length(motparse,32); \ 
    6568              colnum = colnum + strlen(motparse);\ 
    66               /*printf("motparse = %s %d\n",motparse,strlen(motparse)); */\ 
    6769              ECHO; \ 
    6870           }\ 
     
    199201public                  {return TOK_PUBLIC;} 
    200202private                 {return TOK_PRIVATE;} 
    201 \([ \t]*in[ \t]*\)      {return TOK_IN;} 
     203in                      {strcpy(yylval.nac,yytext);return TOK_IN;} 
    202204^[ \t]*data[ \t]+       {strcpy(yylval.na,yytext);return TOK_DATA;} 
    203205continue                 return TOK_CONTINUE; 
    204206go[ \t]*to              {return TOK_PLAINGOTO;} 
    205 \([ \t]*out[ \t]*\)     {return TOK_OUT;} 
    206 \([ \t]*inout[ \t]*\)   {return TOK_INOUT;} 
     207out                     {strcpy(yylval.nac,yytext);return TOK_OUT;} 
     208inout                   {strcpy(yylval.nac,yytext);return TOK_INOUT;} 
    207209intrinsic               {return TOK_INTRINSIC;} 
    208210then                    {return TOK_THEN;} 
     
    296298                           } 
    297299                         } 
     300^"!$AGRIF_DO_NOT_TREAT\n" BEGIN(donottreat); 
     301<donottreat>^"!$AGRIF_END_DO_NOT_TREAT\n" BEGIN(INITIAL); 
     302<donottreat>.*\n 
    298303{COMMENTAIRESFORTRAN90}   { 
    299304                             colnum = 0; 
     
    312317   if (!strcasecmp(curfile,mainfile)) 
    313318   { 
    314       printf("%s line %d, fichier %s\n",s,line_num_fortran,curfile); 
     319      printf("%s line %d, file %s\n",s,line_num_fortran,curfile); 
    315320   } 
    316321   else 
    317322   { 
    318       printf("%s line %d, fichier %s\n",s,line_num_fortran_common,curfile); 
     323      printf("%s line %d, file %s\n",s,line_num_fortran_common,curfile); 
    319324   } 
    320325} 
Note: See TracChangeset for help on using the changeset viewer.