D2 Grammar

BCS ao at pathlink.com
Mon Jan 12 10:42:06 PST 2009


Reply to Paolo,

> In the documentation, the grammar for Declarator is:
> 
> Declarator:
> BasicType2 Declarator DeclaratorSuffixesopt
> BasicType2 Identifier DeclaratorSuffixesopt
> How is possible to parse something like " int i,j; "? What are the
> parser reduction steps?
> 
> Thanks in advance!
> Paolo

The  only real definition for the D grammar is the parser code itself (cpp 
source code). The BNF in the docs is known to be incomplete and/or wrong. 
In the past Walter has edited it from corrections people has submitted so...





More information about the Digitalmars-d mailing list