diff options
author | Araq <rumpf_a@web.de> | 2011-10-10 02:04:15 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-10-10 02:04:15 +0200 |
commit | 51e01879ba1dea65f18d7e5396b0408a2091dfd9 (patch) | |
tree | 5648390e4a4af7c5293e7b0f40b7d0b97d2aa0fc /doc/grammar.txt | |
parent | c138cc36b4b4ad34f982492939db5ae16f409a88 (diff) | |
download | Nim-51e01879ba1dea65f18d7e5396b0408a2091dfd9.tar.gz |
'bind' as a declarative statement
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 3c2741d3a..458c85833 100755 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -33,7 +33,7 @@ primaryPrefix ::= (prefixOperator | 'bind') optInd primarySuffix ::= '.' optInd symbol [generalizedLit] | '(' optInd namedExprList optPar ')' | '[' optInd [indexExpr (comma indexExpr)* [comma]] optPar ']' - | '{' optInd ':' | colonExprList optPar '}' + | '{' optInd [indexExpr (comma indexExpr)* [comma]] optPar '}' | pragma primary ::= primaryPrefix* (symbol [generalizedLit] | @@ -98,7 +98,7 @@ complexStmt ::= ifStmt | whileStmt | caseStmt | tryStmt | forStmt | blockStmt | asmStmt | procDecl | iteratorDecl | macroDecl | templateDecl | methodDecl | constSection | letSection | varSection - | typeSection | whenStmt + | typeSection | whenStmt | bindStmt indPush ::= IND # and push indentation onto the stack indPop ::= # pop indentation from the stack @@ -132,6 +132,7 @@ blockStmt ::= 'block' [symbol] ':' stmt filename ::= symbol | STR_LIT | RSTR_LIT | TRIPLESTR_LIT importStmt ::= 'import' filename (comma filename)* includeStmt ::= 'include' filename (comma filename)* +bindStmt ::= 'bind' IDENT (comma IDENT)* fromStmt ::= 'from' filename 'import' symbol (comma symbol)* pragma ::= '{.' optInd (colonExpr [comma])* optPar ('.}' | '}') |