This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Re : gcc analyze tools


Hi,


On Mon, Jul 25, 2011 at 7:35 PM, Ian Lance Taylor <iant@google.com> wrote:
>
> The C and C++ languages are not LALR(1), and as such are not suitable
> for parsing by bison. ?The old bison parsers were hard to read, hard to
> modify, and, at least for C++, not wholly correct.
>
> Ian
>
Do you know when the changes were made (when did GCC go to hand
written lexers and parsers?)? 3.4.6 still uses a bison parser, right?
I think it uses a hand written lexer (built into the preprocessor?).

Thanks!

kevin


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