Le 6 févr. 2013 à 19:57, b...@cs.boisestate.edu 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. _______________________________________________ help-bison@gnu.org https://lists.gnu.org/mailman/listinfo/help-bison