aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/ast.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-11-03 11:05:15 -0700
committerGraydon Hoare <[email protected]>2010-11-03 11:05:15 -0700
commite5fdd7b63a7365df015c9d08111a8f635b25e058 (patch)
treedaa0b7450779173d9eceed343e038424799b645d /src/comp/front/ast.rs
parentTeach rustc lexer about changes to stratum, opacity and effect keywords. (diff)
downloadrust-e5fdd7b63a7365df015c9d08111a8f635b25e058.tar.xz
rust-e5fdd7b63a7365df015c9d08111a8f635b25e058.zip
Support while and do-while loops in rustc.
Diffstat (limited to 'src/comp/front/ast.rs')
-rw-r--r--src/comp/front/ast.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/ast.rs b/src/comp/front/ast.rs
index 0d042d0d..32317812 100644
--- a/src/comp/front/ast.rs
+++ b/src/comp/front/ast.rs
@@ -94,6 +94,8 @@ tag expr_ {
expr_lit(@lit, option[@ty]);
expr_cast(@expr, @ty);
expr_if(@expr, block, option[block], option[@ty]);
+ expr_while(@expr, block, option[@ty]);
+ expr_do_while(block, @expr, option[@ty]);
expr_block(block, option[@ty]);
expr_assign(@expr /* TODO: @expr|is_lval */, @expr, option[@ty]);
expr_field(@expr, ident, option[@ty]);