first steps for 'not nil' annotation
This commit is contained in:
parent
019d6e4127
commit
ccd2934e4a
7 changed files with 127 additions and 69 deletions
|
|
@ -78,9 +78,10 @@ exprList ::= [expr (comma expr)* [comma]]
|
|||
|
||||
qualifiedIdent ::= symbol ['.' symbol]
|
||||
|
||||
typeDesc ::= exprOrType
|
||||
typeDesc ::= (exprOrType
|
||||
| 'proc' paramList [pragma]
|
||||
| 'iterator' paramList [pragma]
|
||||
| 'iterator' paramList [pragma] )
|
||||
['not' expr] # for now only 'not nil' suffix is supported
|
||||
|
||||
macroStmt ::= ':' [stmt] ('of' [exprList] ':' stmt
|
||||
|'elif' expr ':' stmt
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue