diff options
author | Araq <rumpf_a@web.de> | 2014-12-04 10:12:32 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-12-04 10:12:32 +0100 |
commit | e27ab367318ceb01a023b367ac908c137e3223c7 (patch) | |
tree | aaa726c5f0ff99e7a1bc02c6da046ce1b95a6ea0 /doc/grammar.txt | |
parent | 85d83fd8cb43a1d49a18a6f6329662da47059646 (diff) | |
download | Nim-e27ab367318ceb01a023b367ac908c137e3223c7.tar.gz |
implements 'defer'
Diffstat (limited to 'doc/grammar.txt')
-rw-r--r-- | doc/grammar.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index a54428678..bce3769d0 100644 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -142,6 +142,7 @@ exceptBlock = 'except' colcom stmt forStmt = 'for' (identWithPragma ^+ comma) 'in' expr colcom stmt blockStmt = 'block' symbol? colcom stmt staticStmt = 'static' colcom stmt +deferStmt = 'defer' colcom stmt asmStmt = 'asm' pragma? (STR_LIT | RSTR_LIT | TRIPLE_STR_LIT) genericParam = symbol (comma symbol)* (colon expr)? ('=' optInd expr)? genericParamList = '[' optInd @@ -182,7 +183,7 @@ simpleStmt = ((returnStmt | raiseStmt | yieldStmt | discardStmt | breakStmt | includeStmt | commentStmt) / exprStmt) COMMENT? complexOrSimpleStmt = (ifStmt | whenStmt | whileStmt | tryStmt | finallyStmt | exceptStmt | forStmt - | blockStmt | staticStmt | asmStmt + | blockStmt | staticStmt | deferStmt | asmStmt | 'proc' routine | 'method' routine | 'iterator' routine |