From 80e0ebaa86869b6c7063dde8316f98aa5f365316 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 2 Mar 2011 22:29:53 -0500 Subject: Parse port and chan types, constructors, send statements --- src/comp/front/ast.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/comp/front/ast.rs') diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs index 5999388e..694ff448 100644 --- a/src/comp/front/ast.rs +++ b/src/comp/front/ast.rs @@ -242,6 +242,9 @@ tag expr_ { expr_be(@expr); expr_log(@expr); expr_check_expr(@expr); + expr_port(ann); + expr_chan(@expr, ann); + expr_send(@expr /* TODO: @expr|is_lval */, @expr, ann); } type lit = spanned[lit_]; @@ -278,6 +281,8 @@ tag ty_ { ty_rec(vec[ty_field]); ty_fn(proto, vec[ty_arg], @ty); // TODO: effect ty_obj(vec[ty_method]); + ty_chan(@ty); + ty_port(@ty); ty_path(path, option.t[def]); ty_mutable(@ty); ty_type; -- cgit v1.2.3