gcc analyze tools
Ian Lance Taylor
iant@google.com
Tue Jul 26 00:36:00 GMT 2011
charfi asma <charfiasma@yahoo.fr> writes:
> However, have you any idea why gcc uses now hand written lexer and parsers ?
> what's wrong with lexer/ parser generated from flex/ bison ?
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
More information about the Gcc-help
mailing list