From e18d70fe12dcaa84e073f94922f625f3cebeea39 Mon Sep 17 00:00:00 2001 From: Paul Stansifer Date: Thu, 21 Jul 2011 16:47:47 -0700 Subject: Implement Macro By Example. --- src/comp/syntax/parse/parser.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/comp/syntax/parse/parser.rs') diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 8ea55673207..1cb2ee52dd5 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -807,6 +807,9 @@ fn parse_bottom_expr(&parser p) -> @ast::expr { p.bump(); auto blk = ast::mac_embed_block(parse_block_tail(p)); ret mk_mac_expr(p, lo, p.get_hi_pos(), blk); + } else if (p.peek() == token::ELLIPSIS) { + p.bump(); + ret mk_mac_expr(p, lo, p.get_hi_pos(), ast::mac_ellipsis) } else if (p.peek() == token::TILDE) { p.bump(); alt (p.peek()) { -- cgit 1.4.1-3-g733a5