On Thu, 2009-03-19 at 23:29 -0300, Eduardo Cruz wrote: > I thought gcc used bison as a syntax analyser, but when I saw the gcc > c-parser source code I realized that it didn't use bison. > I read in the gcc mailist that gcc now has a recursive descent parser.
That's right. > Do you have any document that contains the grammar implemented in gcc > c-parser? Yes, the C standard! > It would be easier to make the proprer changes in the grammar if I > have this document, because I won't have to understand the grammar > reading the source code. The C parser source code is annotated with the grammar to help you understand it. For example, see the large comment that appears before c_parser_declspecs in c-parser.c. Cheers, Ben