read line comments
This commit is contained in:
parent
c77b8be011
commit
67c13b841c
|
@ -22,6 +22,9 @@ void yyerror(struct parser_control *p, const char *msg);
|
||||||
%option noinput
|
%option noinput
|
||||||
%option nounput
|
%option nounput
|
||||||
|
|
||||||
|
/* comment */
|
||||||
|
comment ;.*$
|
||||||
|
|
||||||
/* boolean */
|
/* boolean */
|
||||||
boolean #t|#f|#true|#false
|
boolean #t|#f|#true|#false
|
||||||
|
|
||||||
|
@ -43,6 +46,7 @@ infnan "+inf.0"|"-inf.0"|"+nan.0"|"-nan.0"
|
||||||
%%
|
%%
|
||||||
|
|
||||||
[ \t\n\r] /* skip whitespace */
|
[ \t\n\r] /* skip whitespace */
|
||||||
|
{comment} /* skip comment */
|
||||||
"." return tDOT;
|
"." return tDOT;
|
||||||
"(" return tLPAREN;
|
"(" return tLPAREN;
|
||||||
")" return tRPAREN;
|
")" return tRPAREN;
|
||||||
|
|
Loading…
Reference in New Issue