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


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)?
Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]