Re: GCC C FRONT END EXPLANATION

2009-03-23 Thread Ian Lance Taylor
Eduardo Cruz writes: > but in c_parser_attributes this is made in the beggining of the loop: ... > and why does it require the token "(" ? aren't we inside the function > parameters list? No. At that point the parser is reading the function attributes. The comments explain the syntax in deta

Re: GCC C FRONT END EXPLANATION

2009-03-23 Thread Eduardo Cruz
hey, could you guys explain me something? in c-parser.c in c_parser_direct_declarator, when a function name is being parsed, this if: if (c_parser_next_token_is (parser, CPP_OPEN_PAREN)) is true, and inside this if: c_parser_consume_token (parser); attrs = c_parser_attributes (parse

Re: GCC C FRONT END EXPLANATION

2009-03-20 Thread Dave Korn
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_X routines which handle the individual grammar constructs. Eac

Re: GCC C FRONT END EXPLANATION

2009-03-20 Thread Guilherme Puglia
Hi, Sorry for sent a duplicate message. I and Eduardo are in the same class. But i don't know who is Diego, Egidio and Rodrigo. :] But thanks to everybody. I'll read the gcc docs in the source code! See ya! On 3/20/09, Dave Korn wrote: > Ben Elliston wrote: >> Ah, good, a duplicate question t

Re: GCC C FRONT END EXPLANATION

2009-03-19 Thread Dave Korn
Ben Elliston wrote: > Ah, good, a duplicate question that I just answered. :-) > See http://gcc.gnu.org/ml/gcc/2009-03/msg00554.html > > Ben I bet Guilherme and Eduardo are in the same class at college! http://www.din.uem.br/~hppca/membros.html Ah! We can expect emails from Diego, Egidio,

Re: GCC C FRONT END EXPLANATION

2009-03-19 Thread Ben Elliston
Ah, good, a duplicate question that I just answered. :-) See http://gcc.gnu.org/ml/gcc/2009-03/msg00554.html Ben

GCC C FRONT END EXPLANATION

2009-03-19 Thread Guilherme Puglia
Hello to All, I'm new in gcc list. And as all new members I have a problem. I will copy an email whose I've sent to Joe Buck. If someone can answer it for me, I really appreciate that. "Hi Joe Buck, My name is Guilherme and I am a Brazilian undergraduate student in Computer Science. First of al