term rewriting macros fully implemented; still buggy

This commit is contained in:
Araq 2012-09-03 00:55:44 +02:00
commit af7c92c003
22 changed files with 676 additions and 138 deletions

View file

@ -933,6 +933,8 @@ proc semStaticStmt(c: PContext, n: PNode): PNode =
result = evalStaticExpr(c.module, a)
if result.isNil:
LocalError(n.info, errCannotInterpretNodeX, renderTree(n))
elif result.kind == nkEmpty:
result = newNodeI(nkNilLit, n.info)
# special marker values that indicates that we are
# 1) AnalyzingDestructor: currenlty analyzing the type for destructor