1
Fork 0

Change the syntax for RECV from "var <- port" to "port |> var".

This commit is contained in:
Michael Sullivan 2011-05-27 11:59:19 -07:00
parent 2119e3b5b9
commit a7a42c24be
33 changed files with 80 additions and 80 deletions

View file

@ -1256,11 +1256,11 @@ fn parse_assign_expr(&parser p) -> @ast::expr {
ret @spanned(lo, rhs.span.hi,
ast::expr_send(lhs, rhs, p.get_ann()));
}
case (token::LARROW) {
case (token::RECV) {
p.bump();
auto rhs = parse_expr(p);
ret @spanned(lo, rhs.span.hi,
ast::expr_recv(lhs, rhs, p.get_ann()));
ast::expr_recv(rhs, lhs, p.get_ann()));
}
case (_) { /* fall through */ }
}