|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:||Steven Gollery <email@example.com>|
|Keywords:||C, parse, question|
|Date:||Wed, 12 Oct 1994 18:22:34 GMT|
Every ANSI-C grammar I've found on the net has a production like this
as part of declaring a variable or function:
| '*' type_specifier_list
| '*' pointer
| '*' type_specifier_list pointer
The second and fourth alternatives confuse me. They appear to allow
token strings like:
* double *
* float * int
and so on.
What C construct are these productions supposed to be parsing? I
can't think of a situation where it would be legal to have an
asterisk followed by a type name.
And more generally: is there a publication somewhere with an
annotated version of the ANSI C grammar -- something that would
explain the purpose of each production?
Return to the
Search the comp.compilers archives again.