semExpr/semStmt merged

This commit is contained in:
Araq 2012-09-13 08:33:55 +02:00
commit 23c3af80f6
6 changed files with 187 additions and 166 deletions

22
compiler/sempass2.nim Normal file
View file

@ -0,0 +1,22 @@
#
#
# The Nimrod Compiler
# (c) Copyright 2012 Andreas Rumpf
#
# See the file "copying.txt", included in this
# distribution, for details about the copyright.
#
# included from sem.nim
# Second semantic checking pass over the AST. Necessary because the old
# way had some inherent problems. Performs:
#
# * procvar checks
# * effect tracking
# * closure analysis
# * checks for invalid usages of compiletime magics
# * checks for invalid usages of PNimNode
# * later: will do an escape analysis for closures at least