GC tests now finally part of testsuite

This commit is contained in:
Araq 2011-11-10 02:13:02 +01:00
commit 2bd14f4ba8
11 changed files with 79 additions and 672 deletions

View file

@ -10,17 +10,17 @@ macro call(e: expr): expr =
macro dumpAST(n: stmt): stmt =
# dump AST as a side-effect and return the inner node
echo n.toLisp
echo n.toYaml
echo n.lispRepr
echo n.treeRepr
var plusAst = getAst(plus(1, 2))
echo plusAst.toLisp
echo plusAst.lispRepr
var callAst = getAst(call())
echo callAst.toLisp
echo callAst.lispRepr
var e = parseExpr("foo(bar + baz)")
echo e.toLisp
echo e.lispRepr
result = n[1]