summary refs log tree commit diff stats
path: root/doc/grammar.txt
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2011-09-21 00:54:13 +0200
committerAraq <rumpf_a@web.de>2011-09-21 00:54:13 +0200
commit2359b8b1073cfd027ac14a147aba06cc18d61010 (patch)
treea626a08e54311512f40d6ce1a40ffd397dab9cfa /doc/grammar.txt
parent57f184cf48a0b522001ab20e2c742d4d6436e14d (diff)
downloadNim-2359b8b1073cfd027ac14a147aba06cc18d61010.tar.gz
fixed some newly introduced bugs
Diffstat (limited to 'doc/grammar.txt')
-rwxr-xr-xdoc/grammar.txt5
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]