[fpc-devel] Declare variables inside the code
Joerg Schuelke
joerg.schuelke at gmx.de
Wed May 11 14:49:25 CEST 2011
Am Wed, 11 May 2011 12:28:29 +0200
schrieb Hans-Peter Diettrich <DrDiettrich1 at aol.com>:
> Otherwise a declaration list is accepted only at the
> *begin* of a compound statement, not inside a statement list:
>
> compound_stat: '{' [decl_list] [stat_list] '}' ;
I thought that <statement> = <decl_statement> | ...
And only the kind of <decl_statement> which is allowed is restricted in
some contexts. Is it defining or only declaring.
Only declaring <dec_statements> are restricted to the beginning of the
compound statement, but also defining <dec_statements> are allowed.
Jörg
More information about the fpc-devel
mailing list