This is the mail archive of the gcc@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: GCC C FRONT END EXPLANATION


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


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