help-bison
[Top][All Lists]
Advanced

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

OO C++ Flex/Bison example


From: buff
Subject: OO C++ Flex/Bison example
Date: Wed, 06 Feb 2013 11:57:51 -0700

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?

Thanks.

-- Jim



reply via email to

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