Created
September 6, 2011 19:14
-
-
Save zah/1198669 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| template HelperTemplate(a, b, c: expr) : expr = | |
| .... | |
| template AnotherHelper(x: expr, y: stmt) : stmt = | |
| macro ComplexBuilder(a, b, c, d: expr, y: stmt) : stmt = | |
| var ast1 = getAst(helperTemplate(a,b,c)) | |
| var ast2 = getAst(anotherHelper(d, y)) | |
| # manipulate them a bit, add more stuff | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment