home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.compilers      Compiler construction, theory, etc. (Mod      2,753 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 1,996 of 2,753   
   Clint O to All   
   Flex 2.5.35: fatal flex scanner internal   
   22 Jan 11 15:38:13   
   
   From: clint.olsen@gmail.com   
      
   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:   
      
      
   <>          {   
                               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]   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca