[BACK]Return to tokenizer.l CVS log [TXT][DIR] Up to [local] / src / usr.bin / m4

Diff for /src/usr.bin/m4/tokenizer.l between version 1.1 and 1.2

version 1.1, 2004/05/12 21:17:03 version 1.2, 2004/05/12 21:28:35
Line 20 
Line 20 
 #include <errno.h>  #include <errno.h>
 #include <sys/types.h>  #include <sys/types.h>
 #include <limits.h>  #include <limits.h>
   
 extern int32_t yylval;  extern int32_t yylval;
   
 int32_t number(void);  int32_t number(void);
Line 32 
Line 33 
 dec     [1-9][0-9]*  dec     [1-9][0-9]*
   
 %%  %%
 {ws}    {/* just skip it */}  {ws}                    {/* just skip it */}
 {hex}   { yylval = number(); return(NUMBER); }  {hex}|{oct}|{dec}       { yylval = number(); return(NUMBER); }
 {oct}   { yylval = number(); return(NUMBER); }  "<="                    { return(LE); }
 {dec}   { yylval = number(); return(NUMBER); }  ">="                    { return(GE); }
 "<="    { return(LE); }  "<<"                    { return(LSHIFT); }
 ">="    { return(GE); }  ">>"                    { return(RSHIFT); }
 "<<"    { return(LSHIFT); }  "=="                    { return(EQ); }
 ">>"    { return(RSHIFT); }  "!="                    { return(NE); }
 "=="    { return(EQ); }  "&&"                    { return(LAND); }
 "!="    { return(NE); }  "||"                    { return(LOR); }
 "&&"    { return(LAND); }  .                       { return yytext[0]; }
 "||"    { return(LOR); }  
 .       { return yytext[0]; }  
 %%  %%
   
 int32_t  int32_t
Line 61 
Line 60 
         return l;          return l;
   
 }  }
   

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2