"%%actions" making it into bison .c output file. Fix??

caffeine1@nc.rr.com (Dan Caugherty)
17 Oct 2004 16:06:27 -0400

          From comp.compilers

Related articles
"%%actions" making it into bison .c output file. Fix?? caffeine1@nc.rr.com (2004-10-17)
| List of all articles for this month |

From: caffeine1@nc.rr.com (Dan Caugherty)
Newsgroups: comp.compilers
Date: 17 Oct 2004 16:06:27 -0400
Organization: http://groups.google.com
Keywords: yacc, question, comment
Posted-Date: 17 Oct 2004 16:06:27 EDT

Hey all --

The subject line almost says it all. I'm using bison v1.28 (I know,
ancient, but we may be stuck with it), and the "%%actions" line from
the .y file is creeping into the .c output.

Suffice to say, this breaks things.

You may have also inferred that I don't use bison/flex very much,
and that I inherited a project that uses them intensely. Any patient
explanation of what I'm seeing, and how to prevent it, would be most

My apologies if I posted to the wrong group. Feel free to direct
me somewhere else if need be..

Thanks in advance,
-- Dan Caugherty
[Since when does bison have a %%actions line? -John]

Post a followup to this message

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