blob: ab485be5de962a92a97b01c88859934376bf580b (
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: qmsovllex.l,v 1.1 88/01/15 12:19:16 simpson Rel $
%{
/*
$Log: qmsovllex.l,v $
* Revision 1.1 88/01/15 12:19:16 simpson
* initial release
*
* Revision 0.1 87/12/11 21:34:47 simpson
* beta test
*
*/
#undef input
#define input() (((yytchar=yysptr>yysbuf?U(*--yysptr):timedgetc(_Ifp)) \
==10?(yylineno++, yytchar):yytchar)==EOF?0:yytchar)
%}
integer [0-9]+
%%
OVL: return OVL;
S{integer} {
yylval = atoi(&yytext[1]);
return SPACE;
}
{integer} {
yylval = atoi(yytext);
return INTEGER;
}
"Automatic Page" return AUTOPAGE;
NONE return NONE;
\r\n return ENDLINE;
|