about summary refs log tree commit diff
path: root/src/comp/syntax/parse
diff options
context:
space:
mode:
authorPaul Stansifer <paul.stansifer@gmail.com>2011-07-21 16:47:47 -0700
committerPaul Stansifer <paul.stansifer@gmail.com>2011-07-22 16:53:43 -0700
commite18d70fe12dcaa84e073f94922f625f3cebeea39 (patch)
treea801c745ed8b038f6900ec2cf2286da2f6bb0169 /src/comp/syntax/parse
parent4a6ccf3b0ff7a476aa8d692766214bc8ebdfc1dc (diff)
downloadrust-e18d70fe12dcaa84e073f94922f625f3cebeea39.tar.gz
rust-e18d70fe12dcaa84e073f94922f625f3cebeea39.zip
Implement Macro By Example.
Diffstat (limited to 'src/comp/syntax/parse')
-rw-r--r--src/comp/syntax/parse/parser.rs3
1 files changed, 3 insertions, 0 deletions
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()) {