Add syntax for ranges

This commit is contained in:
Nick Cameron 2014-12-13 18:41:02 +13:00
parent 53c5fcb99f
commit 8a357e1d87
13 changed files with 83 additions and 8 deletions

View file

@ -724,6 +724,7 @@ pub enum Expr_ {
ExprTupField(P<Expr>, Spanned<uint>),
ExprIndex(P<Expr>, P<Expr>),
ExprSlice(P<Expr>, Option<P<Expr>>, Option<P<Expr>>, Mutability),
ExprRange(P<Expr>, Option<P<Expr>>),
/// Variable reference, possibly containing `::` and/or
/// type parameters, e.g. foo::bar::<baz>