Modified Files:

ifs_lex.l

	Add BEGIN(INITIAL) to reset the internal condition as yyrestart doesn't do so
This commit is contained in:
stefanjones 2003-06-26 13:54:49 +00:00
parent f9e5f560ac
commit 13b49db876
1 changed files with 6 additions and 3 deletions

View File

@ -86,7 +86,9 @@ E [eE][+-]?{D}+
<comment>\n /* new line */
<comment><<EOF>> {ifs_yyerror ("Unterminated comment"); yyterminate(); }
<comment><<EOF>> {ifs_yyerror ("Unterminated comment");
BEGIN(INITIAL);
yyterminate(); }
<comment>"*"+"/" { BEGIN(INITIAL); }
@ -96,8 +98,9 @@ E [eE][+-]?{D}+
<stringl>"\"" { BEGIN(INITIAL); }
<stringl><<EOF>> {ifs_yyerror ("Unterminated string literal");
yyterminate(); }
<stringl><<EOF>> {ifs_yyerror ("Unterminated string literal");
BEGIN(INITIAL);
yyterminate(); }
allowed_types{W}*: {BEGIN CTYPE; return TOK_ALLOWED_TYPES;}
vector{W}*: {BEGIN BOOL; return TOK_ARRAY;}