This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cpplib: expression parser patch 2


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]