On 31 October 2010 18:49, Paulo J. Matos <pocma...@gmail.com> wrote:
> Philip Herron <redbr...@gcc.gnu.org> writes:
>
>> Your bison generated header also gets renamed by ylwrap, and yeah this
>> is probably the best place to ask about this problem your bison header
>> (y.tab.h) will get renamed to the same name as your bla.y but changed
>> to bla.h.
>>
>> Notice the make line you posted was scgparser.cc y.tab.h scgparser.h
>> See the y.tab.h then scgparser.h.
>
>
> I know, but that is not the problem. The problem is that the bison
> generated file includes y.tab.h but this doesn't exist since, as you
> said, ylwrap renames it.
>

Your bison file shouldnt generate any code with includes y.tab.h. You
must have it in your field delcarations for bison. Its only your lexer
needs to see these bison definitions.

Heres some example:

http://code.redbrain.co.uk/cgit.cgi/qub-mod-c/tree/src/ss-lexer.l
http://code.redbrain.co.uk/cgit.cgi/qub-mod-c/tree/src/ss-parser.y

--Phil

Reply via email to