This is the mail archive of the gcc-patches@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: New C parser [patch]


I wrote:

> Distinguishing whether an identifier where a statement is expected is a 
> label or starts an expression.

This description should also include distinguishing between a typedef name 
starting a declaration and being a label, where both declarations and 
statements are permitted: the checks look successively for a label; 
declaration specifiers; __extension__ (in which case then at the token 
after the sequence of __extension__); or else an unlabeled statement.

-- 
Joseph S. Myers               http://www.srcf.ucam.org/~jsm28/gcc/
    jsm@polyomino.org.uk (personal mail)
    joseph@codesourcery.com (CodeSourcery mail)
    jsm28@gcc.gnu.org (Bugzilla assignments and CCs)


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