(yylex): At eof, if binding levels not popped,

imagine some close-braces to pop them.

From-SVN: r3435
This commit is contained in:
Richard Stallman 1993-02-07 18:15:41 +00:00
parent ef2bf0c061
commit 2e90c25ade
1 changed files with 7 additions and 0 deletions

View File

@ -1024,6 +1024,13 @@ yylex ()
{
case EOF:
end_of_file = 1;
if (! global_bindings_p ())
{
yyerror ("parse error");
token_buffer[0] = '}';
value = '}';
break;
}
token_buffer[0] = 0;
value = ENDFILE;
break;