From e4be084b0e651c396dd6cef287026f33b74568b9 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Sat, 12 Oct 2013 18:46:11 +0900 Subject: [PATCH] skip whitespaces in lex --- src/scan.l | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scan.l b/src/scan.l index ddf32b28..4071eee8 100644 --- a/src/scan.l +++ b/src/scan.l @@ -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; }