term rewriting macros fully implemented; still buggy
This commit is contained in:
parent
b56df72a32
commit
af7c92c003
22 changed files with 676 additions and 138 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue