diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-02 16:33:40 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-02 22:11:46 -0700 |
| commit | b16457627c79b0b4aa2034251f8ba1223df1b4b8 (patch) | |
| tree | 0d581278b09dfd7fad4e107d22a67abe8566f12e /src/comp/syntax | |
| parent | c8fba11bd368370be47ef610e7492cac3f2dc33c (diff) | |
Stop parsing transitional istr forms. Issue #855
Diffstat (limited to 'src/comp/syntax')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 25 |
1 files changed, 1 insertions, 24 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index 6c40115ecda..1b5d5f38835 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -487,8 +487,6 @@ fn parse_ty(p: &parser, colons_before_params: bool) -> @ast::ty { t = ast::ty_float; } else if eat_word(p, "str") { t = ast::ty_istr; - } else if eat_word(p, "istr") { - t = ast::ty_istr; } else if eat_word(p, "char") { t = ast::ty_char; /* @@ -880,15 +878,7 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr { ret mk_mac_expr(p, lo, p.get_hi_pos(), ast::mac_ellipsis) } else if p.peek() == token::TILDE { p.bump(); - alt p.peek() { - token::LIT_STR(s) { - let sp = p.get_span(); - p.bump(); - let lit = @{node: ast::lit_str(p.get_str(s)), span: sp}; - ex = ast::expr_lit(lit); - } - _ { ex = ast::expr_uniq(parse_expr(p)); } - } + ex = ast::expr_uniq(parse_expr(p)); } else if eat_word(p, "obj") { // Anonymous object @@ -1479,19 +1469,6 @@ fn parse_pat(p: &parser) -> @ast::pat { pat = ast::pat_tup(fields); } } - token::TILDE. { - p.bump(); - alt p.peek() { - token::LIT_STR(s) { - let sp = p.get_span(); - p.bump(); - let lit = @{node: ast::lit_str(p.get_str(s)), span: sp}; - hi = lit.span.hi; - pat = ast::pat_lit(lit); - } - _ { p.fatal("expected string literal"); } - } - } tok { if !is_ident(tok) || is_word(p, "true") || is_word(p, "false") { let lit = parse_lit(p); |
