> > 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. Ok. > 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. Ok. > > 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 Regards, Martin
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4