summaryrefslogtreecommitdiff
path: root/dviware/quicspool/libqmsquery/qmsmaplex.l
blob: 3ef469a91f05383434bb9f37a209771f781b3898 (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: qmsmaplex.l,v 1.1 88/01/15 12:19:06 simpson Rel $ */
%{
/*
$Log:	qmsmaplex.l,v $
 * Revision 1.1  88/01/15  12:19:06  simpson
 * initial release
 * 
 * Revision 0.1  87/12/11  21:34:45  simpson
 * beta test
 * 
*/
#undef input
#define input()	(((yytchar=yysptr>yysbuf?U(*--yysptr):timedgetc(_Ifp)) \
    ==10?(yylineno++, yytchar):yytchar)==EOF?0:yytchar)
%}
hex	[0-9A-F]
%%
MAP:			return MAP;
MAPEND			return MAPEND;
^Q{hex}{hex}{hex}{hex}	{
			    (void)strcpy(yylval.s, yytext);
			    return BYTECOUNT;
			}
{hex}+			{
			    (void)strcpy(yylval.s, yytext);
			    return DATA;
			}
\r\n			return ENDLINE;