mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
[toolchain] Parsing support for tuple literal syntax. (#694)
For now, we permit non-empty tuples to have trailing commas, and require a trailing comma if there's exactly one list element. The exact rule here has not yet been decided.
This commit is contained in:
@@ -43,6 +43,9 @@ CARBON_PARSE_NODE_KIND(StatementEnd)
|
||||
|
||||
// Expressions.
|
||||
CARBON_PARSE_NODE_KIND(Literal)
|
||||
CARBON_PARSE_NODE_KIND(TupleLiteral)
|
||||
CARBON_PARSE_NODE_KIND(TupleLiteralComma)
|
||||
CARBON_PARSE_NODE_KIND(TupleLiteralEnd)
|
||||
CARBON_PARSE_NODE_KIND(NameReference)
|
||||
CARBON_PARSE_NODE_KIND(ParenExpression)
|
||||
CARBON_PARSE_NODE_KIND(ParenExpressionEnd)
|
||||
|
||||
Reference in New Issue
Block a user