1 
2 %option noinput
3 %option nounput
4 
5 /* This file is part of the Alliance Project.
6    Copyright (C) Laboratoire LIP6 - Departement ASIM
7    Universite Pierre et Marie Curie
8 
9    The Alliance Project  is free software;  you can  redistribute it and/or
10    modify  it  under the  terms  of  the  GNU  General  Public License  as
11    published by  the Free  Software Foundation; either  version 2  of  the
12    License, or (at your option) any later version.
13 
14    The Alliance Project  is distributed in the hope that it will be useful,
15    but  WITHOUT  ANY  WARRANTY;  without  even  the  implied  warranty  of
16    MERCHANTABILITY  or  FITNESS  FOR A  PARTICULAR PURPOSE.   See  the GNU
17    General Public License for more details.
18 
19    You should have received a copy  of  the  GNU  General  Public  License
20    along with  the Alliance Project;  if  not,  write to the  Free Software
21    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
22 
23 
24    License-Tag
25 
26    Date   : 29/01/2004
27    Author : Christophe Alexandre  <Christophe.Alexandre@lip6.fr>
28 
29    Authors-Tag
30 */
31 %{
32 #include <stdio.h>
33 #include "iocgram.h"
34 
35 #define YY_NO_UNPUT	/* Avoids warning */
36 
37 /*int	 yylineno = 1;*/
38 
39 %}
40 
41 %%
42 #.*				{}
43 \n				{ ++yylineno; }
44 [Ii][Gg][Nn][Oo][Rr][Ee]	{return IGNORE;	}
45 [Tt][Oo][Pp]			{return TOP;	}
46 [Bb][Oo][Tt][Tt][Oo][Mm]	{return BOTTOM;	}
47 [Ll][Ee][Ff][Tt]		{return LEFT;	}
48 [Rr][Ii][Gg][Hh][Tt]		{return RIGHT;	}
49 [Ii][Oo][Pp][Ii][Nn]		{return IOPIN;	}
50 [Ss][Pp][Aa][Cc][Ee]		{return SPACE;	}
51 "("				{return PAROUV;	}
52 ")"				{return PARFER;	}
53 ;				{return PTVIRG;	}
54 "\.0"				{return PTZR;	}
55 [a-zA-Z0-9_]+			{yylval.text = yytext;
56 				 return IOCID;	}
57 [ \t]+				{}
58 .				{return *yytext;}
59 
60 %%
61 int yywrap()
62 {
63   return 1;
64 }
65