[Swan] Who changed parser.l ????

Wes Hardaker wes at hardakers.net
Tue Jan 8 18:48:39 EET 2013


Philippe Vouters <philippe.vouters at laposte.net> writes:

> Wes,
>
> If you remember your test case, wouldn't this code in parser.l do the trick:
> <<EOF>> {
>         static int once = 0;
>         if (once = !once) {
>             stacktop->line++;
>         } else if(parser_y_eof()) {
>             yyterminate();
>         }
> }

I actually thought I tried that at one point, but I'll give it another
shot in case I hadn't.

-- 
Wes Hardaker                                     
My Pictures:  http://capturedonearth.com/
My Thoughts:  http://pontifications.hardakers.net/


More information about the Swan mailing list