Akim Demaille <[email protected]>:
> Well, that's a feature you would like, not exactly a bug.
OK, let me back up a step.
The actual problem I have, I guess, is that I want to declare the scanner
function in my re-entrant parser in a type-safe way, not using void *.
Any day I have to use void * and casting is not a good day - it seems
like a bug that the API forces me to that.
YY_DECL is only a means to that end. Can we come uo with another way to
be type-safe that meets your concerns?
> >> I've written many reentrant parsers with Bison and Flex without the
> >> bison-bridge, I don't think it is needed.
> >
> > I have not found documentation of how to write a reentrant parser without
> > the bridge. Does any exist?
>
> I don't know, but I could improve examples/c/lexcalc to show that.
I think that would be very useful, and not just for me.
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
My work is funded by the Internet Civil Engineering Institute: https://icei.org
Please visit their site and donate: the civilization you save might be your own.