|Re-reentrant parser made with Bison++ and flex++ email@example.com (2001-12-20)|
|Re: Re-reentrant parser made with Bison++ and flex++ RLWatkins@CompuServe.Com (R. L. Watkins) (2001-12-22)|
|Re: Re-reentrant parser made with Bison++ and flex++ firstname.lastname@example.org (2001-12-22)|
|Date:||20 Dec 2001 00:39:38 -0500|
|Keywords:||yacc, C++, parse, question|
|Posted-Date:||20 Dec 2001 00:39:38 EST|
We are using bison++ and flex++ to develop a C++ lexer/parser for a
language. In this language there is a rule that allows to "include"
files of the same language. Thus we need to do a kind of recursive
Right now the "include" files semantic action instantiate a new
lexer/parser to parse the included file, but this does no work
correctly because of conficts with the running parser.
The bison documentation speaks of "pure reentrant" parsers that should
probably be used in this context.
But with flex++/bison++ which has some differencies with bison, we
don't know how this "pure reentrant" parsers must be instantiated and
used, and in particular kow the connection betwwen the lexer and the
parser has to be done.
Any help or advices or example of code welcome.
Return to the
Search the comp.compilers archives again.