mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Lex/parse support for ->?, :?, and form literals (#6695)
See #5389 (pending) for the language design.
This commit is contained in:
@@ -169,6 +169,11 @@ auto HandleExprInPostfix(Context& context) -> void {
|
||||
context.PushState(StateKind::ArrayExpr);
|
||||
break;
|
||||
}
|
||||
case Lex::TokenKind::Form: {
|
||||
context.PushState(state);
|
||||
context.PushState(StateKind::FormLiteral);
|
||||
break;
|
||||
}
|
||||
case Lex::TokenKind::Package: {
|
||||
context.AddLeafNode(NodeKind::PackageExpr, context.Consume());
|
||||
if (context.PositionKind() != Lex::TokenKind::Period) {
|
||||
|
||||
Reference in New Issue
Block a user