add ?? prefix operator

This commit is contained in:
Andrew Kelley
2016-02-01 02:11:46 -07:00
parent b3459f64e7
commit 179443bd61
8 changed files with 29 additions and 26 deletions

View File

@@ -1206,6 +1206,7 @@ static PrefixOp tok_to_prefix_op(Token *token) {
case TokenIdMaybe: return PrefixOpMaybe;
case TokenIdPercent: return PrefixOpError;
case TokenIdPercentPercent: return PrefixOpUnwrapError;
case TokenIdDoubleQuestion: return PrefixOpUnwrapMaybe;
case TokenIdBoolAnd: return PrefixOpAddressOf;
default: return PrefixOpInvalid;
}