Changeset 530 for trunk/AGRIF/LIB/convert.lex
- Timestamp:
- 2006-10-17T17:36:11+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/AGRIF/LIB/convert.lex
r396 r530 3 3 /* CONV (converter) for Agrif (Adaptive Grid Refinement In Fortran) */ 4 4 /* */ 5 /* Copyright (C) 2005 Laurent Debreu (Laurent.Debreu@imag.fr)*/5 /* Copyright or © or Copr. Laurent Debreu (Laurent.Debreu@imag.fr) */ 6 6 /* Cyril Mazauric (Cyril.Mazauric@imag.fr) */ 7 /* This software is governed by the CeCILL-C license under French law and */ 8 /* abiding by the rules of distribution of free software. You can use, */ 9 /* modify and/ or redistribute the software under the terms of the CeCILL-C */ 10 /* license as circulated by CEA, CNRS and INRIA at the following URL */ 11 /* "http://www.cecill.info". */ 7 12 /* */ 8 /* This program is free software; you can redistribute it and/or modify */ 9 /* it */ 13 /* As a counterpart to the access to the source code and rights to copy, */ 14 /* modify and redistribute granted by the license, users are provided only */ 15 /* with a limited warranty and the software's author, the holder of the */ 16 /* economic rights, and the successive licensors have only limited */ 17 /* liability. */ 10 18 /* */ 11 /* This program is distributed in the hope that it will be useful, */ 12 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 13 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */ 14 /* GNU General Public License for more details. */ 19 /* In this respect, the user's attention is drawn to the risks associated */ 20 /* with loading, using, modifying and/or developing or reproducing the */ 21 /* software by the user in light of its specific status of free software, */ 22 /* that may mean that it is complicated to manipulate, and that also */ 23 /* therefore means that it is reserved for developers and experienced */ 24 /* professionals having in-depth computer knowledge. Users are therefore */ 25 /* encouraged to load and test the software's suitability as regards their */ 26 /* requirements in conditions enabling the security of their systems and/or */ 27 /* data to be ensured and, more generally, to use and operate it in the */ 28 /* same conditions as regards security. */ 15 29 /* */ 30 /* The fact that you are presently reading this means that you have had */ 31 /* knowledge of the CeCILL-C license and that you accept its terms. */ 32 /******************************************************************************/ 33 /* version 1.0 */ 16 34 /******************************************************************************/ 17 35 %s character … … 34 52 NAME [a-zA-Z\_][a-zA-Z0-9\_]* 35 53 DIGIT [0-9]+ 36 NUM {DIGIT}37 54 NEXTLINE \n+[ \t]+"$"|\n+[ \t]+"&" 38 FILENAME {NAME}"."{NAME}39 55 %% 40 regridding return TOK_REGRIDDING; /* period of regridding */41 coeffrefx return TOK_COEFFRAFX; /* space refinement in the x direction */42 coeffrefy return TOK_COEFFRAFY; /* space refinement in the y direction */43 coeffrefz return TOK_COEFFRAFZ; /* space refinement in the z direction */44 coeffreftx return TOK_COEFFRAFTX; /* time refinement in the x direction */45 coeffrefty return TOK_COEFFRAFTY; /* time refinement in the y direction */46 coeffreftz return TOK_COEFFRAFTZ; /* time refinement in the z direction */47 56 parammodule return TOK_MODULEMAIN; /* name of the module */ 48 efficiency return TOK_EFFICIENCY; /* efficiency for the adaptive refinement */49 rafmax return TOK_RAFMAX; /* minimum size in all directions */50 rafmaxx return TOK_RAFMAXX; /* minimum size in x direction */51 rafmaxy return TOK_RAFMAXY; /* minimum size in y direction */52 rafmaxz return TOK_RAFMAXZ; /* minimum size in z direction */53 57 notgriddep return TOK_NOTGRIDDEP; /* variable which are not grid dependent */ 54 58 use return TOK_USE; 55 minwidth return TOK_MINWIDTH; /* minimum width of rectangles for the */56 /* adaptive refinement */57 59 {COMMENTAIRES1} {} 58 60 {SEPARATEUR} return TOK_SEP; 59 {FILENAME} {strcpy(yylval.na,yytext); return TOK_FILENAME;}60 61 {USEITEM} {strcpy(yylval.na,yytext); return TOK_USEITEM;} 61 62 {PROBTYPE} {strcpy(yylval.na,yytext); return TOK_PROBTYPE;} 62 63 /* dimension of the problem */ 63 64 {NAME} {strcpy(yylval.na,yytext); return TOK_NAME;} 64 {NUM} {yylval.ival=atoi(yytext); return TOK_NUM;}65 65 ;|\,|\(|\)|:|\[|\] {return (int) *yytext;} 66 66 \n {line_num++;return (int) *yytext;}
Note: See TracChangeset
for help on using the changeset viewer.