diff options
Diffstat (limited to 'doc/grammar.txt')
-rwxr-xr-x | doc/grammar.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index 2474b584e..b95af89ef 100755 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -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 |