[expr parser] Brace/bracket unary op required for set leaves.

This commit is contained in:
Miguel Lechon
2021-09-09 12:48:04 +02:00
parent c0a50bfe27
commit b2c901d60f
3 changed files with 21 additions and 3 deletions
+3 -1
View File
@@ -64,7 +64,9 @@ struct OperatorDescription{
X(AssignRightShift, ">>=", BinaryRightAssociative, 4) \
X(AssignBitwiseAnd, "&=", BinaryRightAssociative, 4) \
X(AssignBitwiseXor, "^=", BinaryRightAssociative, 4) \
X(AssignBitwiseOr, "|=", BinaryRightAssociative, 4)
X(AssignBitwiseOr, "|=", BinaryRightAssociative, 4) \
X(BracketSet, "[]", Prefix, 3) \
X(BraceSet, "{}", Prefix, 3)
// X(Cast "()", Prefix, 17)
// X(Comma, ",", Binary, 3)