This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cpplib: expression parser patch 2
- To: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Subject: Re: cpplib: expression parser patch 2
- From: Neil Booth <NeilB at earthling dot net>
- Date: Sat, 1 Apr 2000 11:05:25 +0900
- Cc: gcc-patches at gcc dot gnu dot org, Zack Weinberg <zack at wolery dot cumb dot org>
- References: <NeilB@earthling.net> <200004010124.e311ONR01652@sleipnir.valparaiso.cl>
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)?