cpplib: expression parser patch 2

Neil Booth NeilB@earthling.net
Fri Mar 31 18:06:00 GMT 2000


Horst,

I quote an answer I got from Zack a few days ago when I asked him the
same question:-

"You can't put two yacc/bison parsers in the same program without a
great deal of extra effort.  cpplib may be linked into programs that
contain yacc/bison parsers."

The grammar for preprocessor expressions is not very complex, and
having a hand-made one is faster in this case.  This is not a reason
by itself, of course, but just a coincidental advantage.

Neil.

Horst von Brand wrote:-

> Is cpp using operator precedence parsing? Why not bison(1)?



More information about the Gcc-patches mailing list