This one time, at band camp, Ken Foskey wrote:
>> The compile line gives the flag -d, which means "write out the token types
>> in a header file", and also -o, telling it to write to rscyacc.yxx in
>> ../../unixlngi3/inc/.
>> 
>> So, what exactly is broken?  Is the rest of the compile not finding the
>> output of bison?  Is bison choking on the input and not making anything?
>> 
>
>If you read the bison man page (at least the woody one)  -d says that it
>will write out the full gramar into .yxx and the header into .yxx.h. 
>This is not occuring.
>
>Do you have a different man page to me?

Possibly, mine says:
    If the parser output file is named name.c then this
    file is named name.h.
which suggests to me it isn't coping with the .yxx extension.

The GNU Make default is to just run bison and rename the default yy.tab.c
and yy.tab.h files to the desired target names.

Perhaps make a rule like this:

rscyacc.yxx rscyacc.yxx.h: rscyacc.y
    bison -d -o rscyacc.yxx $<
    mv yy.tab.h rscyacc.yxx.h

You'll have to check to see what .h file bison is generating, it might be
rscyacc.h.

-- 
[EMAIL PROTECTED]                           http://spacepants.org/jaq.gpg
 
Das Usenet ist so ein wunderbares, aber zerbrechliches Medium und so viele
treten es so in den Dreck und machen es unbenutzbar - sei es durch Absicht
oder Gedankenlosigkeit, was vom Ergebnis das gleiche ist.
        -- Bettina Fink
-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug

Reply via email to