support for multiple modules of the same name; niminst supports 'platforms'; minor bugfixes
This commit is contained in:
parent
83584bf889
commit
8b5aa221ad
14 changed files with 132 additions and 48 deletions
|
|
@ -104,11 +104,12 @@ exprStmt = simpleExpr
|
|||
| IND{=} 'except' exprList ':' stmt
|
||||
| IND{=} 'else' ':' stmt )*
|
||||
))?
|
||||
importStmt = 'import' optInd expr
|
||||
((comma expr)*
|
||||
moduleName = expr ('as' expr)?
|
||||
importStmt = 'import' optInd moduleName
|
||||
((comma moduleName)*
|
||||
/ 'except' optInd (expr ^+ comma))
|
||||
includeStmt = 'include' optInd expr ^+ comma
|
||||
fromStmt = 'from' expr 'import' optInd expr (comma expr)*
|
||||
fromStmt = 'from' moduleName 'import' optInd expr (comma expr)*
|
||||
returnStmt = 'return' optInd expr?
|
||||
raiseStmt = 'raise' optInd expr?
|
||||
yieldStmt = 'yield' optInd expr?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue