Implement Macro By Example.

This commit is contained in:
Paul Stansifer 2011-07-21 16:47:47 -07:00
parent 4a6ccf3b0f
commit e18d70fe12
7 changed files with 667 additions and 235 deletions

View file

@ -1,5 +1,5 @@
// xfail-stage0
//error-pattern:expanded as an identifier
//error-pattern:is an expr, expected an identifier
fn main() {
#macro([#mylambda(x, body), {fn f(int x) -> int {ret body}; f}]);