summaryrefslogtreecommitdiff
path: root/dviware/quicspool/libqmsquery/qmsopclex.l
blob: e35f4b137c853e5247c7cbec54065bf82254a26c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* $Header: qmsopclex.l,v 1.1 88/01/15 12:19:11 simpson Rel $
%{
/*
$Log:	qmsopclex.l,v $
 * Revision 1.1  88/01/15  12:19:11  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  21:34:46  simpson
 * beta test
 * 
*/
#undef input
#define input()	(((yytchar=yysptr>yysbuf?U(*--yysptr):timedgetc(_Ifp)) \
    ==10?(yylineno++, yytchar):yytchar)==EOF?0:yytchar)
%}
integer	[0-9]+
%%
OC[1-5]:	{
		    yylval.i = yytext[2] - '0';
		    return OC;
		}
{integer}	{
		    yylval.i = atoi(yytext);
		    return INTEGER;
		}
\,		return yytext[0];
NONE		return NONE;
\r\n		return ENDLINE;