diff options
author | Araq <rumpf_a@web.de> | 2012-01-17 23:58:18 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2012-01-17 23:58:18 +0100 |
commit | 78f4aacde9e79e9a13b17dc2a3709d5f09a0ae0b (patch) | |
tree | c15ee952109ec54c36267593c0a851444878b434 /doc/grammar.txt | |
parent | 42dad650e036efdc6e76e64ac0e30c4571937a6e (diff) | |
download | Nim-78f4aacde9e79e9a13b17dc2a3709d5f09a0ae0b.tar.gz |
pragma blocks; fixed line information issue with user defined assertions
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 5f7b851fa..325a29ad5 100755 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -35,7 +35,6 @@ primarySuffix ::= '.' optInd symbol [generalizedLit] | '(' optInd namedExprList optPar ')' | '[' optInd [indexExpr (comma indexExpr)* [comma]] optPar ']' | '{' optInd [indexExpr (comma indexExpr)* [comma]] optPar '}' - | pragma primary ::= primaryPrefix* (symbol [generalizedLit] | constructor | castExpr | addrExpr) @@ -84,13 +83,15 @@ macroStmt ::= ':' [stmt] ('of' [exprList] ':' stmt |'except' exceptList ':' stmt )* ['else' ':' stmt] +pragmaBlock ::= pragma [':' stmt] + simpleStmt ::= returnStmt | yieldStmt | discardStmt | raiseStmt | breakStmt | continueStmt - | pragma + | pragmaBlock | importStmt | fromStmt | includeStmt |