diff options
author | Araq <rumpf_a@web.de> | 2011-10-08 02:14:42 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-10-08 02:14:42 +0200 |
commit | c138cc36b4b4ad34f982492939db5ae16f409a88 (patch) | |
tree | ca21910d3e774e69eb4f232676c4f1d036386060 /doc/grammar.txt | |
parent | e956abbaddfb8609bebeff6ffb9d402709020c48 (diff) | |
download | Nim-c138cc36b4b4ad34f982492939db5ae16f409a88.tar.gz |
new syntactic construct: a{i}
Diffstat (limited to 'doc/grammar.txt')
-rwxr-xr-x | doc/grammar.txt | 3 |
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] | |