3 $Id: solpip_scan.l 23065 2016-03-02 09:05:50Z coelho $
5 Copyright 1989-2016 MINES ParisTech
7 This file is part of PIPS.
9 PIPS is free software: you can redistribute it and/or modify it
10 under the terms of the GNU General Public License as published by
11 the Free Software Foundation, either version 3 of the License, or
14 PIPS is distributed in the hope that it will be useful, but WITHOUT ANY
15 WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 FITNESS FOR A PARTICULAR PURPOSE.
18 See the GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with PIPS. If not, see <http://www.gnu.org/licenses/>.
26 /* Name : solpip_scan.l
28 * Author : F. Lamour, F. Dumontet
30 * Historic : 2 august 93, moved into (package) paf-util, AP
34 * Grammaire Lex pour interpreter une solution fournie par PIP en un "quast
38 #include "pips_config.h"
41 #include "solpip_parse.h"
44 /* Pour que espace, cr, et tabulation soient ignores */
48 symboles {letter}({letter}|{chiffre})*
51 "list" {return (LST);}
58 "(newparm" {return (NEWPARM);}
60 "/" {return (DIV_OP);}
61 "-" {return (MOINS_OP);}
63 {chiffre}+ {sscanf(yytext,"%d",&yylval.valeur); return(ENTIER);}
64 {symboles} {sscanf(yytext, "%c",&yylval.blabla); return(TEXTE);}