|ANSI C grammar "pointer" production email@example.com (Steven Gollery) (1994-10-12)|
|Re: ANSI C grammar "pointer" production firstname.lastname@example.org (1994-10-14)|
|From:||email@example.com (Arthur Watson)|
|Summary:||qualifier not specifier, see K&R 2|
|Keywords:||C, parse, comment|
|Organization:||Express Access Online Communications, Greenbelt, MD USA|
|Date:||Fri, 14 Oct 1994 22:27:38 GMT|
Steven Gollery <firstname.lastname@example.org> wrote:
>Every ANSI-C grammar I've found on the net has a production like this
> : '*'
> | '*' type_specifier_list
>They appear to allow token strings like:
> * int
It should be "type_qualifier_list", not "type_specifier_list".
It allows token strings like:
The 2nd edition of Kernighan and Ritchie's _The C Programming Language_
gives the type of annotated grammer you ask about as appendix A.
You can navigate it using the index -- for example, looking up
"type specifier" should verify the above information.
[There's a book by Herbert Schildt which has the ISO C standard on even
numbered pages and annotations on the odd pages, but I don't recall whether
he had anything useful to say about this part of the grammar. -John]
Return to the
Search the comp.compilers archives again.