scanner.l

Fri, 28 Dec 2001 04:55:47 +0000

author
eric
date
Fri, 28 Dec 2001 04:55:47 +0000
changeset 7
e1f52aa9f252
parent 5
9eb47d44dab9
child 8
7288d2753c18
permissions
-rw-r--r--

*** empty log message ***

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