Jan Wieck <JanWieck@Yahoo.com> writes:
> If we want to have both parsers available at runtime we need
> to replace the YY (case-insensitive) prefix in the generated
> files per parser and call the right one from tcop. Now for
> some flex/bison combo's at least the prefix switches (to have
> something different than YY) don't work reliable. There will
> be some global YY-objects left, causing linkage problems.
> That's why PL/pgSQL's scanner/parser's C-code is run through
> sed(1).
This is a solved problem. gdb, for example, links together four
different Yacc-based parsers, without even using bison's -p option.
Ian