Files
Nim/compiler
Zahary Karadjov 91351e5996 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.
2011-09-20 14:13:45 +03:00
..
2011-04-12 01:13:42 +02:00
2011-07-10 15:48:13 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-21 00:54:44 +02:00
2011-06-02 13:02:40 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00
2011-04-12 01:13:42 +02:00

This directory contains the Nimrod compiler written in Nimrod. Note that this
code has been translated from a bootstrapping version written in Pascal, so
the code is **not** a poster child of good Nimrod code.