Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: flatten root BlockState for SemanticStackContext #16

Closed
mrLSD opened this issue Nov 11, 2023 · 0 comments
Closed

Feature: flatten root BlockState for SemanticStackContext #16

mrLSD opened this issue Nov 11, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@mrLSD
Copy link
Owner

mrLSD commented Nov 11, 2023

Description

The current BlockState is represented as a tree with one parent and many children. It represents blocks as a tree with branches and leaves. Each block state has a context that contains SemanticStack. It means that all contexts also represented as a tree.

There is an unknown entry point to the branch or leaf of context. And it's a bit tricky to flatten root context for endpoint Codegen. To simplify the fetching process for Codegen backends, there is a proposal:

  • for the parent BlockState "flatten" all children's contexts. It means parent context will also include children's contexts. And it has linear representations. At the same time, it will exist children BlockState with their own context
  • root BlockState will contain flattened linear context.
@mrLSD mrLSD changed the title Feature: flatten root BlockState fro SemanticStackContext Feature: flatten root BlockState for SemanticStackContext Nov 11, 2023
@mrLSD mrLSD added the enhancement New feature or request label Nov 11, 2023
@mrLSD mrLSD added this to the v0.3.1 milestone Nov 11, 2023
@mrLSD mrLSD self-assigned this Nov 18, 2023
@mrLSD mrLSD closed this as completed Nov 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant