summaryrefslogtreecommitdiff
path: root/dviware/quicspool/libqmsquery/qmsramlex.l
blob: 69bf6e9ad26ea0ae30e803f88d8e2a7ccfa84627 (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
29
/* $Header: qmsramlex.l,v 1.1 88/01/15 12:19:37 simpson Rel $ */
%{
/*
$Log:	qmsramlex.l,v $
 * Revision 1.1  88/01/15  12:19:37  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  21:34:49  simpson
 * beta test
 * 
*/
#undef input
#define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):timedgetc(_Ifp)) \
    ==10?(yylineno++, yytchar):yytchar)==EOF?0:yytchar)    
%}
integer	[0-9]+
%%
RAM:		    return RAM;
TR		    return TRT;
AR		    return ART;
FR		    return FRT;
OR		    return ORT;
{integer}	    {
			yylval = atoi(yytext);
			return INTEGER;
		    }
= |
\,		    return yytext[0];
\r\n		    return ENDLINE;