Re: Is there a Bison IRC channel?

2023-12-05 Thread Hans Åberg
> On Dec 5, 2023, at 03:16, Steve Litt wrote: > > Is there a Bison IRC channel? Is there a Flex IRC channel? You might try the Usenet newsgroup comp.compilers.

Re: Is there a Bison IRC channel?

2023-12-05 Thread eml-bison
On 05/12/2023 08:51, Hans Åberg wrote: You might try the Usenet newsgroup comp.compilers. Unfortunately, that's been completely useless for 20+ years. The moderator held everything back and only posted once or twice a week, so nobody bothered. I haven't checked for maybe 15 years, but I'd be

Re: Is there a Bison IRC channel?

2023-12-05 Thread eml-bison
On 05/12/2023 17:02, Steve Litt wrote: Thanks eml-bison! Yes, bad moderators are the bain of IRC. We've all seen it many times. Just for fun, I'd like to see if just maybe the IRC channel you used for Bison has changed for the better. Could you please tell me the channel name and the server? I

Flex/Bison converter doesn't stop on EOF

2023-12-05 Thread Steve Litt
Hi all, I've written a Flex source file and Bison source file, linked together with the Flex derived scanner acting as a library for the Bison derived parser. The resulting executable does exactly what I want it to do: Replace every instance of the string "ball" in stdin with the string "Hello wor

Re: Flex/Bison converter doesn't stop on EOF

2023-12-05 Thread Piotr Siupa
Fragment from the manual (https://westes.github.io/flex/manual/Generated-Scanner.html): "When the scanner receives an end-of-file indication from YY_INPUT, it then checks the yywrap() function. If yywrap() returns false (zero), then it is assumed that the function has gone ahead and set up yyin to

Re: Flex/Bison converter doesn't stop on EOF

2023-12-05 Thread Steve Litt
Piotr Siupa said on Tue, 5 Dec 2023 20:27:15 +0100 >Fragment from the manual >(https://westes.github.io/flex/manual/Generated-Scanner.html): >"When the scanner receives an end-of-file indication from YY_INPUT, it >then checks the yywrap() function. If yywrap() returns false (zero), >then it is ass

Newbie BNF/Flex/Bison/Compiler theory presentation Wednesday, 12/6/2023 at 7PM Eastern Standard Time

2023-12-05 Thread Steve Litt
Hi all, First, thanks so much for the help you've given me. Your guidance enabled me to create a Flex/Bison Hello World. The online GoLUG meeting on Wednesday (12/6/2023) night features teaching presentations, for raw newbies, on BNF, Flex/Bison, and general compiler theory. If David and I do our