|Using Bison parser with C++ code email@example.com (Wayne Mitchinson) (2001-05-29)|
|Re: Using Bison parser with C++ code firstname.lastname@example.org (Fraser Orr) (2001-05-31)|
|From:||Wayne Mitchinson <email@example.com>|
|Date:||29 May 2001 23:18:26 -0400|
|Keywords:||parse, yacc, C++, question|
|Posted-Date:||29 May 2001 23:18:26 EDT|
I'm sure this question has been asked before,
Does anyone know of some good online examples for integrating a
bison/yacc compiler into a C++ program. I'm new at this parser
writing game and needless to say, the learning curve is steep.
I did a search for the internet to try and find C++ code generators
and found references to Bison++, but also these links stated that it
is no longer maintained. Also, several links mentioned that they just
used the C version of the parser code in their programs. How so ?
I am vaguely familiar with JavaCC, and I am aware that Antlr will
generate C++ code, but I'd rather stay within the lex/flex yacc/bison
environmnet as these are generally available on most unix boxes...
To re-iterate, I'm no expert, but I can get bison/flex to successfully
process an input file. I now want to integrate this parser into some
C++ code to create object instances based on the data in the parsed
Help and direction will be a godsend!!
Jennic Ltd, Furnival Street, Sheffield S1 4QT
Return to the
Search the comp.compilers archives again.