diff options
| author | Patrick Walton <[email protected]> | 2010-10-12 14:54:49 -0700 |
|---|---|---|
| committer | Patrick Walton <[email protected]> | 2010-10-12 14:54:49 -0700 |
| commit | b1ca4da3b37181136cfeedc9a37545146de53f2a (patch) | |
| tree | da189bdab1014889b61bb0d2ef251849939cc72d | |
| parent | rustc: Parse tuple types (diff) | |
| download | rust-b1ca4da3b37181136cfeedc9a37545146de53f2a.tar.xz rust-b1ca4da3b37181136cfeedc9a37545146de53f2a.zip | |
rustc: Parse box types
| -rw-r--r-- | src/comp/front/parser.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/parser.rs b/src/comp/front/parser.rs index 64d25409..597d578f 100644 --- a/src/comp/front/parser.rs +++ b/src/comp/front/parser.rs @@ -105,6 +105,8 @@ io fn parse_ty(parser p) -> @ast.ty { case (token.CHAR) { p.bump(); t = ast.ty_char; } case (token.MACH(?tm)) { p.bump(); t = ast.ty_machine(tm); } + case (token.AT) { p.bump(); t = ast.ty_box(parse_ty(p)); } + case (token.TUP) { p.bump(); auto f = parse_possibly_mutable_ty; // FIXME: trans_const_lval bug |