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: Neil Booth <NeilB at earthling dot net>
- Subject: Re: cpplib: expression parser patch 2
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Fri, 31 Mar 2000 21:24:23 -0400
- cc: gcc-patches at gcc dot gnu dot org, Zack Weinberg <zack at wolery dot cumb dot org>
Neil Booth <NeilB@earthling.net> said:
[...]
> Previously, these were handled with the standard shift / reduce logic
> based on left- and right priorities. The current patch forces an
> immediate shift of '(' without considering reductions, and an
> immediate reduction of ')' to the previous '(' without shifting. This
> paves the way for simplification of the priority scheme in the next
> patch.
Is cpp using operator precedence parsing? Why not bison(1)?
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile +56 32 672616