diff options
| author | Kevin Atkinson <kevina@cs.utah.edu> | 2012-02-04 15:42:12 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-02-05 15:38:27 -0800 |
| commit | 1d855ebc510855536beee418036b405cfa05808e (patch) | |
| tree | 11bf14668926c5b378f24685ce2c529b6b7f91b3 /src/comp/syntax/parse | |
| parent | 91b6dc5c8ed8d839006de4ea6a7e8cd6727db93d (diff) | |
| download | rust-1d855ebc510855536beee418036b405cfa05808e.tar.gz rust-1d855ebc510855536beee418036b405cfa05808e.zip | |
Remove support for $(...) form of quasi-quotes, use #ast{...} instead.
Diffstat (limited to 'src/comp/syntax/parse')
| -rw-r--r-- | src/comp/syntax/parse/lexer.rs | 1 | ||||
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 6 | ||||
| -rw-r--r-- | src/comp/syntax/parse/token.rs | 2 |
3 files changed, 0 insertions, 9 deletions
diff --git a/src/comp/syntax/parse/lexer.rs b/src/comp/syntax/parse/lexer.rs index 00bc73baeba..143b4eba487 100644 --- a/src/comp/syntax/parse/lexer.rs +++ b/src/comp/syntax/parse/lexer.rs @@ -349,7 +349,6 @@ fn next_token_inner(rdr: reader) -> token::token { '#' { rdr.bump(); if rdr.curr == '<' { rdr.bump(); ret token::POUND_LT; } - if rdr.curr == '(' { rdr.bump(); ret token::POUND_LPAREN; } if rdr.curr == '{' { rdr.bump(); ret token::POUND_LBRACE; } ret token::POUND; } diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 0b321b17b92..d3c5695496c 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -880,12 +880,6 @@ fn parse_bottom_expr(p: parser) -> pexpr { } else if p.token == token::ELLIPSIS { p.bump(); ret pexpr(mk_mac_expr(p, lo, p.span.hi, ast::mac_ellipsis)); - } else if p.token == token::POUND_LPAREN { - p.bump(); - let e = parse_expr(p); - expect(p, token::RPAREN); - ret pexpr(mk_mac_expr(p, lo, p.span.hi, - ast::mac_qq(e.span, e))); } else if eat_word(p, "bind") { let e = parse_expr_res(p, RESTRICT_NO_CALL_EXPRS); fn parse_expr_opt(p: parser) -> option<@ast::expr> { diff --git a/src/comp/syntax/parse/token.rs b/src/comp/syntax/parse/token.rs index 37ef677b6d6..d71ec1c2831 100644 --- a/src/comp/syntax/parse/token.rs +++ b/src/comp/syntax/parse/token.rs @@ -53,7 +53,6 @@ enum token { LBRACE, RBRACE, POUND, - POUND_LPAREN, POUND_LBRACE, POUND_LT, @@ -128,7 +127,6 @@ fn to_str(r: reader, t: token) -> str { LBRACE { ret "{"; } RBRACE { ret "}"; } POUND { ret "#"; } - POUND_LPAREN { ret "#("; } POUND_LBRACE { ret "#{"; } POUND_LT { ret "#<"; } |
