Lex/parse support for ->?, :?, and form literals (#6695)

See #5389 (pending) for the language design.
This commit is contained in:
Geoff Romer
2026-02-07 02:41:22 +00:00
committed by GitHub
parent 1382a8645a
commit 7938d9a8d0
31 changed files with 758 additions and 195 deletions
+5
View File
@@ -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) {