automake
[Top][All Lists]
Advanced

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

Re: Problems with linking multiple lex/yacc parsers into one executable


From: Philip Herron
Subject: Re: Problems with linking multiple lex/yacc parsers into one executable
Date: Sun, 17 May 2009 13:00:45 +0100
User-agent: Thunderbird 2.0.0.21 (Macintosh/20090302)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ralf Wildenhues wrote:
> Hello,
>
> * Philip Herron wrote on Sun, May 17, 2009 at 12:49:32PM CEST:
>> I solved this problem a while back!
>>
>> http://lists.gnu.org/archive/html/automake/2009-04/msg00095.html
>>
>> The trick is in each of your lexers(flex .l) add this: %option
>> prefix="prefix" outfile="lex.yy.c"
>
> I don't see %option documented in POSIX (looking at SUSv3). Are you
> sure your solution is portable to non-flex lex?  If not, then
> please reconsider praising it as a portable solution.
>
>> Dont change the outfile ylwrap needs it to be lex.yy.c!
>
> If the example in the Automake manual needs fixing, then we should
> fix it, so that it really works.  However, somebody needs to do the
>  work and find and test it.  It should be added to the Automake
> test suite.
>
> I can do testing on various systems but working on the example is
> not high in my priority list because I do not know lex well.

Hey

I think i could maby invest a little time on this, i am also wondering
about that %option because i took me forevor to find that so its
probably not a standard option, but i only really tested my solution
on Debian, Suse and solaris(uses Lex rather than flex). I dont really
have access to any hpux or aix though i should be able to get my hands
on an aix at work somehow. :P

But i'll maby play with this. If i find a more standard solution what
should i do?


- --Phil
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkoP/G0ACgkQAhcOgIaQQ2HFhACeO3StZmkA/wk9nAdaj3zFc7RR
UXEAmwbfPCaNy6lABML2hlfljA53/Lix
=W6BJ
-----END PGP SIGNATURE-----





reply via email to

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