Flex 2.5.35: fatal flex scanner internal error--end of buffer missed

Clint O <clint.olsen@gmail.com>
Sat, 22 Jan 2011 15:38:13 -0800 (PST)

          From comp.compilers

Related articles
Flex 2.5.35: fatal flex scanner internal error--end of buffer missed clint.olsen@gmail.com (Clint O) (2011-01-22)
Re: Flex 2.5.35: fatal flex scanner internal error--end of buffer miss clint.olsen@gmail.com (Clint O) (2011-01-22)
| List of all articles for this month |

From: Clint O <clint.olsen@gmail.com>
Newsgroups: comp.compilers
Date: Sat, 22 Jan 2011 15:38:13 -0800 (PST)
Organization: Compilers Central
Keywords: flex, errors, question
Posted-Date: 22 Jan 2011 21:02:49 EST

Hi:


I received this message from flex when trying to write an EOF rule
looking for unterminated curly braces. I ended up writing a rule
like:




<curly><<EOF>> {
                                                        Token t("{", "{", yyextra->oldsrc());


                                                        yyextra->token() = t;


                                                        return 1;
                                                }


This error happens only if I enable error recovery in Parse::Yapp (a
Perl clone of yacc). I would prefer if I could use error recovery to
emit more useful messages, but this has had me stumped for awhile.


Thanks,


-Clint
[I see notes saying that if you longjmp out of the lexer and call it
again without resetting the input stream, this error often results.
-John]



Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.