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 2,559 of 2,753    |
|    Philipp Klaus Krause to All    |
|    Re: What happens at the end of the file     |
|    04 Jun 20 19:16:09    |
      From: pkk@spth.de              Further investigation shows that this was an intentional, but       undocumented change in flex in 2015 (flex 2.5.4 input() returns EOF at       the end of the file, flex 2.6.4 input() returns 0). However I still have       no idea why this change was made.              I guess the only portable way to handle the end of the file is to set a       flag in yywrap() and check it each time input() was called.              Philipp       [Returning EOF was a bug. The lex input() always returned 0 at end of file.       -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