summary refs log tree commit diff stats
path: root/lib/wrappers/gtk
diff options
context:
space:
mode:
authorZahary Karadjov <zahary@gmail.comy>2011-09-07 04:25:18 +0300
committerZahary Karadjov <zahary@gmail.comy>2011-09-20 14:13:45 +0300
commit91351e5996e48ba1e3235a6dbaf37f9102e067b6 (patch)
tree3dd2eb17cafa2fdafceae0c4e66b0ec738e03ac3 /lib/wrappers/gtk
parentd541815e4b61b8378ed79af642cc2e0f3b4e09df (diff)
downloadNim-91351e5996e48ba1e3235a6dbaf37f9102e067b6.tar.gz
Initial implementation of the parseExpr, parseStmt, getAst macro routines:
proc parseExpr*(s: string) : expr {.magic: "ParseExprToAst".}
  ## Compiles the passed string to its AST representation
  ## Expects a single expression

proc parseStmt*(s: string) : stmt {.magic: "ParseStmtToAst".}
  ## Compiles the passed string to its AST representation
  ## Expects one or more statements

proc getAst*(macroOrTemplate: expr): expr {.magic: "ExpandMacroToAst".}
  ## Obtains the AST nodes returned from a macro or template invocation
  ## example:
  ## macro FooMacro() = 
  ##   var ast = getAst(BarTemplate())

Handling of the node.toYaml magic moved to the evaluation engine.
Diffstat (limited to 'lib/wrappers/gtk')
0 files changed, 0 insertions, 0 deletions