diff options
| author | Eric Holk <eholk@mozilla.com> | 2011-08-13 15:20:11 -0700 |
|---|---|---|
| committer | Eric Holk <eholk@mozilla.com> | 2011-08-15 09:26:52 -0700 |
| commit | be7325073acb63ed76861de387c6035d714c26db (patch) | |
| tree | 551adfe941a9d543958e764b45b6aca1fc94bdc1 /src/comp/syntax/parse/parser.rs | |
| parent | c3535f58427aed5aed891f302de728b0b809838c (diff) | |
| download | rust-be7325073acb63ed76861de387c6035d714c26db.tar.gz rust-be7325073acb63ed76861de387c6035d714c26db.zip | |
Removed spawn and task from the parser. Updated all the tests except for the benchmarks.
Diffstat (limited to 'src/comp/syntax/parse/parser.rs')
| -rw-r--r-- | src/comp/syntax/parse/parser.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/comp/syntax/parse/parser.rs b/src/comp/syntax/parse/parser.rs index f28ea683cf9..a0ee9d785d0 100644 --- a/src/comp/syntax/parse/parser.rs +++ b/src/comp/syntax/parse/parser.rs @@ -475,8 +475,10 @@ fn parse_ty(p: &parser) -> @ast::ty { t = ast::ty_istr; } else if (eat_word(p, "char")) { t = ast::ty_char; +/* } else if (eat_word(p, "task")) { t = ast::ty_task; +*/ } else if (eat_word(p, "i8")) { t = ast::ty_machine(ast::ty_i8); } else if (eat_word(p, "i16")) { @@ -804,8 +806,10 @@ fn parse_bottom_expr(p: &parser) -> @ast::expr { ret parse_do_while_expr(p); } else if (eat_word(p, "alt")) { ret parse_alt_expr(p); +/* } else if (eat_word(p, "spawn")) { ret parse_spawn_expr(p); +*/ } else if (eat_word(p, "fn")) { ret parse_fn_expr(p, ast::proto_fn); } else if (eat_word(p, "block")) { |
