[Python-Dev] Re: PEP 244 syntax

Martin v. Loewis martin@loewis.home.cs.tu-berlin.de
Mon, 16 Jul 2001 23:40:59 +0200

> > directive_statement: 'directive' NAME [atom] [';'] NEWLINE
> > 
> > How do you want this to change?
> To make the directive statment useful for setting compiler
> parameters, the syntax should be extended to allow
> for an (optional) '='. Whether or not this '=' sign must be there
> is up to the definition of the directive NAME.


> It may also be worthwhile using a testlist (see Grammar)
> instead of the fixed atom for cases where the compiler
> parameter needs to be a e.g. list of options.


> I'd also suggest to remove the optional ';' since this is
> not confrom with the rest of Python....

Sure it is; disallowing the semicolon would be not conform:

simple_stmt: small_stmt (';' small_stmt)* [';'] NEWLINE

You can have a semicolon after each small_stmt