summaryrefslogtreecommitdiff
path: root/src/ast/expr.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-04-30 13:05:14 +0800
committerJohn Hodge <tpg@mutabah.net>2016-04-30 13:05:14 +0800
commit756abd3f2fd768e73a014e190c7a446a3f5aa44c (patch)
tree77cd0718121eec7d992ea7ea2a06e24bbb49a52d /src/ast/expr.hpp
parent8f694dbd8ee7b0ea786229642b994a6d00cbe478 (diff)
downloadmrust-756abd3f2fd768e73a014e190c7a446a3f5aa44c.tar.gz
Parser - Handle '?', '...', and 'default fn`
Diffstat (limited to 'src/ast/expr.hpp')
-rw-r--r--src/ast/expr.hpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/ast/expr.hpp b/src/ast/expr.hpp
index 19b7cddc..19c348cb 100644
--- a/src/ast/expr.hpp
+++ b/src/ast/expr.hpp
@@ -513,6 +513,7 @@ struct ExprNode_BinOp:
CMPGTE,
RANGE,
+ RANGE_INC,
BOOLAND,
BOOLOR,
@@ -551,11 +552,12 @@ struct ExprNode_UniOp:
public ExprNode
{
enum Type {
- REF,
- REFMUT,
- BOX,
- INVERT,
- NEGATE,
+ REF, // '& <expr>'
+ REFMUT, // '&mut <expr>'
+ BOX, // 'box <expr>'
+ INVERT, // '!<expr>'
+ NEGATE, // '-<expr>'
+ QMARK, // '<expr>?'
};
enum Type m_type;