aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-10-06 18:36:28 -0700
committerGraydon Hoare <[email protected]>2010-10-06 18:36:28 -0700
commitfa5ef4cfb64d900a659f2e4380c8f2c8718f3826 (patch)
treefa83697f1be4111e436a3cdd685f1aaf4b5a78a8 /src/comp/front/ast.rs
parentMake ast node box uses more uniform in rustc. (diff)
downloadrust-fa5ef4cfb64d900a659f2e4380c8f2c8718f3826.tar.xz
rust-fa5ef4cfb64d900a659f2e4380c8f2c8718f3826.zip
Add the beginnings of an ast folder plus an empty module for resolve.
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 74126b96..422fd039 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -76,7 +76,7 @@ tag stmt_ {
type decl = spanned[decl_];
tag decl_ {
- decl_local(ident, option[@ty], ty);
+ decl_local(ident, bool, option[@ty]);
decl_item(name, @item);
}
@@ -126,8 +126,9 @@ tag mode {
}
type slot = rec(@ty ty, mode mode, option[slot_id] id);
+type input = rec(slot slot, ident ident);
-type _fn = rec(vec[rec(slot slot, ident ident)] inputs,
+type _fn = rec(vec[input] inputs,
slot output,
block body);