Is the declaration grammar definition of 'Parameter' correct?

Bernard Helyer b.helyer at gmail.com
Mon Jun 7 21:06:28 PDT 2010


On 08/06/10 16:00, Ellery Newcomer wrote:
>
>
> Yeah, it's wrong. (close reads of parse.c are much more useful than
> reading the spec. heh.) A peek in my grammar and...
>
> Parameter:
> ...
> BasicType Declarator
> BasicType Declarator = AssignExpression
> BasicType Declarator ...
> Type
> Type ...
>
> I probably should have filed bug reports back when I was going through
> the grammar. Oh well.

Hmm. On the same page, Declarator has an identifier in it. Which means I 
still couldn't parse

int function(int, int)

with it, no?


More information about the Digitalmars-d mailing list