You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
⏲️ Currently, function parameters are not interpreted as variables, and it means that Codegen should operate with that to the own choice.
mrLSD/toy-codegen explicitly shows, that it's a bit complicated, to operate with no pre-init variables, and has inner pitfalls with implementation for Codegen.
🕺 Proposal
Add function parameters as variables to BlockState, and add instructions to allocate and bind explicitly. As the solution: just use SemanticStackContext::LetBinding to fulfill SemanticStack result.
The text was updated successfully, but these errors were encountered:
Description
⏲️ Currently, function parameters are not interpreted as variables, and it means that Codegen should operate with that to the own choice.
mrLSD/toy-codegen explicitly shows, that it's a bit complicated, to operate with no pre-init variables, and has inner pitfalls with implementation for Codegen.
🕺 Proposal
Add function parameters as variables to
BlockState
, and add instructions to allocate and bind explicitly. As the solution: just useSemanticStackContext::LetBinding
to fulfillSemanticStack
result.The text was updated successfully, but these errors were encountered: