mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 09:00:27 +00:00
[parse] Implement initial parsing support for Lambda expressions (#6583)
This adds the necessary parser infrastructure to recognize and parse lambda expressions in Carbon. Key changes: - Added and Parse Node Kinds. - Updated to use to accommodate the growing number of node kinds. - Implemented parser states and handlers for lambda syntax ( or ). - Added structure to . - Added diagnostics for missing lambda bodies. - Added a stub in phase to defer semantic analysis using . - Added parser tests for lambdas.
This commit is contained in:
1 parent
83651bb9ee
commit
80639a02f0
19 files changed
+496
-15
No files matched your search
@@ -688,4 +688,9 @@ auto HandleParseNode(Context& context,
|
||||
return true;
|
||||
}
|
||||
|
||||
auto HandleParseNode(Context& context, Parse::FunctionTerseDefinitionId node_id)
|
||||
-> bool {
|
||||
return context.TODO(node_id, "HandleFunctionTerseDefinition");
|
||||
}
|
||||
|
||||
} // namespace Carbon::Check
|
||||
Reference in new issue
Block a user