scanner.l

Fri, 28 Dec 2001 04:44:05 +0000

author
eric
date
Fri, 28 Dec 2001 04:44:05 +0000
changeset 5
9eb47d44dab9
child 7
e1f52aa9f252
permissions
-rw-r--r--

Initial revision

     1 %option case-insensitive
     3 /*
     4 %{
     5 #include "parser.tab.h"
     6 }%
     7 */
     9 digit [0-9]
    10 alpha [a-zA-Z]
    12 %%
    14 {digit}+	{ yylval.integer = atoi (yytext); return (INTEGER); }
    16 all		{ return (ALL); }
    17 bookmark	{ return (BOOKMARK); }
    18 crop		{ return (CROP); }
    19 even		{ return (EVEN); }
    20 file		{ return (FILE); }
    21 image		{ return (IMAGE); }
    22 input		{ return (INPUT); }
    23 odd		{ return (ODD); }
    24 output		{ return (OUTPUT); }
    25 page		{ return (PAGE); }
    26 rotate		{ return (ROTATE); }
    27 size		{ return (SIZE); }
    29 \".*\"		{ yylval.string = newstr (yytext); return (STRING); }