automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bison and automake together


From: Philip Herron
Subject: Re: Bison and automake together
Date: Sun, 31 Oct 2010 22:55:53 +0000

On 31 October 2010 18:49, Paulo J. Matos <address@hidden> wrote:
> Philip Herron <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]