skip whitespaces in lex

This commit is contained in:
Yuichi Nishiwaki
2013-10-12 18:46:11 +09:00
parent 4cceb73db6
commit e4be084b0e
+1
View File
@@ -14,6 +14,7 @@ struct parser_control {
%%
[ \t\n\r] /* skip whitespace */
"(" return tLPAREN;
")" return tRPAREN;
[1-9][0-9]* { yylval.datum = pic_int_value(atoi(yytext)); return tINT; }