diff options
author | Araq <rumpf_a@web.de> | 2011-09-21 00:54:13 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-09-21 00:54:13 +0200 |
commit | 2359b8b1073cfd027ac14a147aba06cc18d61010 (patch) | |
tree | a626a08e54311512f40d6ce1a40ffd397dab9cfa /doc/grammar.txt | |
parent | 57f184cf48a0b522001ab20e2c742d4d6436e14d (diff) | |
download | Nim-2359b8b1073cfd027ac14a147aba06cc18d61010.tar.gz |
fixed some newly introduced bugs
Diffstat (limited to 'doc/grammar.txt')
-rwxr-xr-x | doc/grammar.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/doc/grammar.txt b/doc/grammar.txt index 3e8c89a2e..9df8f57f4 100755 --- a/doc/grammar.txt +++ b/doc/grammar.txt @@ -96,7 +96,8 @@ simpleStmt ::= returnStmt complexStmt ::= ifStmt | whileStmt | caseStmt | tryStmt | forStmt | blockStmt | asmStmt | procDecl | iteratorDecl | macroDecl | templateDecl | methodDecl - | constSection | typeSection | whenStmt | varSection + | constSection | letSection | varSection + | typeSection | whenStmt indPush ::= IND # and push indentation onto the stack indPop ::= # pop indentation from the stack @@ -157,6 +158,8 @@ colonAndEquals ::= [':' typeDesc] '=' expr constDecl ::= symbol ['*'] [pragma] colonAndEquals [COMMENT | IND COMMENT] | COMMENT constSection ::= 'const' indPush constDecl (SAD constDecl)* DED indPop +letSection ::= 'let' indPush constDecl (SAD constDecl)* DED indPop + typeDef ::= typeDesc | objectDef | enumDef | 'distinct' typeDesc objectField ::= symbol ['*'] [pragma] |