help-bison
[Top][All Lists]
Advanced

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

Re: OO C++ Flex/Bison example


From: Akim Demaille
Subject: Re: OO C++ Flex/Bison example
Date: Fri, 6 Sep 2013 16:42:43 +0200

Le 6 févr. 2013 à 19:57, address@hidden a écrit :

> Hi Folks,
> 
> I developed a minimal complete example that uses a lexer
> object and a parser object. That is:
> 
>    static FlexLexer* lexer= ...
>    static yy::parser* parser= ...
>        :
>    ... lexer->yylex() ...
>        :
>    ... parser->parse() ...
> 
> 
> It's a trivial infix-to-postfix translator, for my Compilers
> class.
> 
> The Bison manual doesn't really show how to do it. It took
> me a while to figure it out. Would you be interested in
> adding it to the manual?

hi Jim!

I have also been doing similar things, and really, Flex is
not helping, imho.

I'm somewhat afraid to include too much Flex material in our
documentation.  Is there's a place where we can have a look
at how you do it?  Actually, maybe you don't even use Flex
and its C++ output.


reply via email to

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