Guilherme Puglia wrote: > But thanks to everybody. > I'll read the gcc docs in the source code!
The C parser starts in gcc/c-parser.c. There are a bunch of lexing routines at the top, then you'll see a whole bunch of c_parser_XXXXX routines which handle the individual grammar constructs. Each one has a commnent at the top describing the syntax elements it parses and referring to the paragraph of the C standard where they're defined. (If you don't have a copy of the C standard handy, google "n1256.pdf"). Good luck! cheers, DaveK