read line comments

This commit is contained in:
Yuichi Nishiwaki 2013-10-28 13:04:24 +09:00
parent c77b8be011
commit 67c13b841c
1 changed files with 4 additions and 0 deletions

View File

@ -22,6 +22,9 @@ void yyerror(struct parser_control *p, const char *msg);
%option noinput
%option nounput
/* comment */
comment ;.*$
/* boolean */
boolean #t|#f|#true|#false
@ -43,6 +46,7 @@ infnan "+inf.0"|"-inf.0"|"+nan.0"|"-nan.0"
%%
[ \t\n\r] /* skip whitespace */
{comment} /* skip comment */
"." return tDOT;
"(" return tLPAREN;
")" return tRPAREN;