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
..
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-10-21 00:12:14 +02:00
2011-04-11 00:25:24 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-07-10 15:48:13 +02:00
2011-07-10 15:48:13 +02:00
2011-07-10 15:48:13 +02:00
2011-07-10 15:48:13 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-07-10 15:48:13 +02:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2011-07-10 15:48:13 +02:00
2010-03-14 01:25:25 +01:00
2010-03-08 20:46:54 +01:00
2010-06-04 00:45:46 +02:00
2010-02-26 01:26:16 +01:00
2010-03-14 01:25:25 +01:00
2011-07-31 14:57:38 +02:00
2010-02-26 01:26:16 +01:00
2011-09-20 14:13:45 +03:00
2010-05-21 16:03:21 +02:00
2010-03-25 19:11:17 +01:00
2010-02-26 01:26:16 +01:00
2010-03-09 21:36:11 +01:00
2010-07-29 21:30:04 +02:00
2010-02-26 01:26:16 +01:00
2011-07-10 15:48:13 +02:00
2011-03-23 01:09:52 +01:00
2011-07-30 10:42:51 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-07-10 15:48:13 +02:00
2011-07-10 15:48:13 +02:00
2010-11-07 21:42:00 +01:00
2011-07-29 01:25:05 +02:00
2011-02-12 19:24:20 +01:00
2010-06-04 00:45:46 +02:00
2010-03-14 01:25:25 +01:00
2010-05-21 16:03:21 +02:00
2010-03-09 19:37:26 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-05-21 16:03:21 +02:00
2011-07-10 15:48:13 +02:00
2011-07-10 15:48:13 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2011-05-14 01:13:44 +02:00
2011-03-23 01:09:52 +01:00
2010-05-21 16:03:21 +02:00
2011-03-23 01:09:52 +01:00
2011-07-10 15:48:13 +02:00
2011-07-23 20:19:05 +02:00
2011-07-10 15:48:13 +02:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2011-02-12 19:24:20 +01:00
2011-08-01 08:39:27 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-07-10 15:48:13 +02:00
2010-03-15 12:17:58 +01:00
2011-06-28 01:31:53 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2010-02-26 01:26:16 +01:00
2011-07-22 23:58:19 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-12-13 07:58:35 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-10-21 00:12:14 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2011-04-11 23:28:53 +02:00
2010-02-26 01:26:16 +01:00
2011-07-22 23:58:19 +02:00
2011-07-10 15:48:13 +02:00
2010-02-26 01:26:16 +01:00
2011-08-10 00:43:58 +02:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2011-07-10 15:48:13 +02:00
2011-04-11 23:28:53 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2010-05-21 16:03:21 +02:00
2010-02-26 01:26:16 +01:00
2011-05-01 20:11:55 +02:00
2011-07-10 15:48:13 +02:00
2011-05-01 20:11:55 +02:00
2011-07-10 15:48:13 +02:00
2010-10-21 00:12:14 +02:00
2011-07-10 15:48:13 +02:00
2011-08-07 21:02:09 +02:00
2010-02-26 01:26:16 +01:00
2010-02-26 01:26:16 +01:00
2011-07-10 15:48:13 +02:00
2010-07-29 21:30:04 +02:00
2010-02-26 01:26:16 +01:00
2011-07-31 14:57:38 +02:00
2011-07-22 23:58:19 +02:00
2010-02-26 01:26:16 +01:00