%{ #include "LuaSL_type_parser.h" #include "LuaSL_yaccer.tab.h" %} %option reentrant noyywrap never-interactive nounistd %option bison-bridge LPAREN "(" RPAREN ")" PLUS "+" MULTIPLY "*" NUMBER [0-9]+ WS [ \r\n\t]* %% {WS} { /* Skip blanks. */ } {NUMBER} { sscanf(yytext,"%d",&yylval->value); return TOKEN_NUMBER; } {MULTIPLY} { return TOKEN_MULTIPLY; } {PLUS} { return TOKEN_PLUS; } {LPAREN} { return TOKEN_LPAREN; } {RPAREN} { return TOKEN_RPAREN; } . { } %%