diff options
author | Araq <rumpf_a@web.de> | 2012-11-25 11:03:14 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-11-25 11:03:14 +0100 |
commit | ccd2934e4a29668013776937d387084ad349f142 (patch) | |
tree | 602b5625e80da0eb38431d76bf4c2a34e2808f0d /doc/grammar.txt | |
parent | 019d6e4127a1dbe7ba8be4cc40c3c9358b1c48b3 (diff) | |
download | Nim-ccd2934e4a29668013776937d387084ad349f142.tar.gz |
first steps for 'not nil' annotation
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 |