implemented 'let' statement
This commit is contained in:
parent
31a994cc10
commit
7fcbdc6d42
33 changed files with 169 additions and 103 deletions
|
|
@ -163,7 +163,7 @@ proc semGenericStmt(c: PContext, n: PNode,
|
|||
for j in countup(0, L-2):
|
||||
a.sons[j] = semGenericStmt(c, a.sons[j], flags+{withinTypeDesc}, toBind)
|
||||
a.sons[L-1] = semGenericStmtScope(c, a.sons[L-1], flags, toBind)
|
||||
of nkVarSection:
|
||||
of nkVarSection, nkLetSection:
|
||||
for i in countup(0, sonsLen(n) - 1):
|
||||
var a = n.sons[i]
|
||||
if a.kind == nkCommentStmt: continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue