help-bison
[Top][All Lists]
Advanced

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

Re: Multiple Lexer


From: Philip Herron
Subject: Re: Multiple Lexer
Date: Wed, 29 Apr 2009 10:22:37 +0100
User-agent: Thunderbird 2.0.0.21 (X11/20090409)

Hans Aberg wrote:
> On 15 Apr 2009, at 14:41, Philip Herron wrote:
>
>> So my problems is i have a program which it would be nice to have 2
>> completely separate lexers only one of them needs a yacc grammar file.
>
> It seems you have not gotten a reply.
>
> Set the name-space prefix by 'bison --name-prefix=<name>' and 'flex
> -P<name>', where <name> is the prefix you want. This should separate
> global names so they don't clash. If you want to run the same parser
> simultaneously more than once in the same program look up "pure
> parser" in the Bison manual.
>
>   Hans
>
>

Hey

Thanks, i got this fixed a while back, i understand how it works now. I
posted what i did to fix it on automake mailing list. it was the
-P<prefix> for flex threw me off and it took a while to find it because
i kept putting a space in it. :)

But i was also using bison kind of bad so now i have it all fixed. :)

Thanks

-Phil




reply via email to

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