summary refs log tree commit diff stats
path: root/doc/grammar.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-11-25 11:03:14 +0100
committerAraq <rumpf_a@web.de>2012-11-25 11:03:14 +0100
commitccd2934e4a29668013776937d387084ad349f142 (patch)
tree602b5625e80da0eb38431d76bf4c2a34e2808f0d /doc/grammar.txt
parent019d6e4127a1dbe7ba8be4cc40c3c9358b1c48b3 (diff)
downloadNim-ccd2934e4a29668013776937d387084ad349f142.tar.gz
first steps for 'not nil' annotation
Diffstat (limited to 'doc/grammar.txt')
-rwxr-xr-xdoc/grammar.txt5
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
revious revision' href='/gbmor/getwtxt/blame/go.sum?h=v0.3.2&id=505c5d87d32a20d02efc5ed297a24f04e15765d6'>^
db3eceb ^

efa99ed ^
db3eceb ^










efa99ed ^
db3eceb ^
2421e96 ^

db3eceb ^


2421e96 ^




db3eceb ^



efa99ed ^
db3eceb ^
2421e96 ^




db3eceb ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72