gcc analyze tools

kevin diggs diggskevin38@gmail.com
Tue Jul 26 19:56:00 GMT 2011


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



More information about the Gcc-help mailing list