import macros
#[
Compare to the expresion newSeq[int](10), which is represented by the AST:
StmtList
Call
BracketExpr
Ident !"newSeq"
Ident !"int"
IntLit 10
]#
macro dseq(len : int) : untyped =
let procTyped = newNimNode(nnkBracketExpr).add(ident("newSeq")).add(ident("int"))
result = newCall(procTyped, [len])
let a = dseq(10)