summary refs log tree commit diff stats
path: root/doc
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-10-08 02:14:42 +0200
committerAraq <rumpf_a@web.de>2011-10-08 02:14:42 +0200
commitc138cc36b4b4ad34f982492939db5ae16f409a88 (patch)
treeca21910d3e774e69eb4f232676c4f1d036386060 /doc
parente956abbaddfb8609bebeff6ffb9d402709020c48 (diff)
downloadNim-c138cc36b4b4ad34f982492939db5ae16f409a88.tar.gz
new syntactic construct: a{i}
Diffstat (limited to 'doc')
-rwxr-xr-xdoc/grammar.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt
index 9df8f57f4..3c2741d3a 100755
--- a/doc/grammar.txt
+++ b/doc/grammar.txt
@@ -25,7 +25,7 @@ indexExpr ::= expr
 
 castExpr ::= 'cast' '[' optInd typeDesc optPar ']' '(' optInd expr optPar ')'
 addrExpr ::= 'addr' '(' optInd expr optPar ')'
-symbol ::= '`' (KEYWORD | IDENT | operator | '(' ')' | '[' ']'
+symbol ::= '`' (KEYWORD | IDENT | operator | '(' ')' | '[' ']' | '{' '}'
                | '=' | literal)+ '`'
          | IDENT
          
@@ -33,6 +33,7 @@ primaryPrefix ::= (prefixOperator | 'bind') optInd
 primarySuffix ::= '.' optInd symbol [generalizedLit]
                 | '(' optInd namedExprList optPar ')'
                 | '[' optInd [indexExpr (comma indexExpr)* [comma]] optPar ']'
+                | '{' optInd ':' | colonExprList optPar '}'
                 | pragma
 
 primary ::= primaryPrefix* (symbol [generalizedLit] | 
x27;t use .immediate anymore' href='/ahoang/Nim/commit/compiler/vmhooks.nim?h=devel&id=60b187513ed8e2a061816a912e372a1c81794d50'>60b187513 ^
1f85b3b5d ^





2aff71613 ^
1f85b3b5d ^





2aff71613 ^





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