Skip to content

Refactor multi-section implementation#37

Merged
kaihsin merged 12 commits into
mainfrom
rob/refactor-multi-section
Jul 17, 2026
Merged

Refactor multi-section implementation#37
kaihsin merged 12 commits into
mainfrom
rob/refactor-multi-section

Conversation

@robpatterson13

@robpatterson13 robpatterson13 commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Changes:

  • Refactor multi-section bytecode/SST container parsing into vihaco-parser-core, with shared parsed-file/section tree types and stricter validation for section bounds, duplicate children, and child offsets
  • Replace the old BytecodeContext / ProgramContext loading model with explicit global context traits BytecodeGlobalContext, SstGlobalContext, SectionNameResolver, and NoContext
  • Split loading into format-specific traits: LoadOwnBytecodeSection, LoadBytecodeSection, LoadOwnSstSection, and LoadSstSection, and replace ProgramLoader with ProgramImage over LocalModule (this means a one-to-one mapping between SectionView and ParsedModule
  • Update #[composite] generated loading to route optional #[loadable] child sections, and removed #[header] and #[program] (including program counter routing)
  • Rename text bytecode concepts to SST, support omitted .global as an implicit empty global context, and update docs/tests/examples for the new APIs

@github-actions

github-actions Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-07-17 18:03 UTC

@robpatterson13 robpatterson13 linked an issue Jul 8, 2026 that may be closed by this pull request
@robpatterson13
robpatterson13 requested a review from kaihsin July 8, 2026 18:39
@robpatterson13
robpatterson13 marked this pull request as ready for review July 8, 2026 18:39
@kaihsin kaihsin mentioned this pull request Jul 13, 2026
@kaihsin
kaihsin merged commit f629735 into main Jul 17, 2026
11 checks passed
@kaihsin
kaihsin deleted the rob/refactor-multi-section branch July 17, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Merge text multi-section into vihaco-parser

2 participants