Skip to content

feat: add structs syntax - #1

Merged
ya7on merged 1 commit into
masterfrom
structs
Jul 26, 2026
Merged

feat: add structs syntax#1
ya7on merged 1 commit into
masterfrom
structs

Conversation

@ya7on

@ya7on ya7on commented Jul 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

@ya7on
ya7on merged commit 6be73ca into master Jul 26, 2026
@ya7on
ya7on deleted the structs branch July 26, 2026 13:14

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: e2d37dd737

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread src/stages/interpreter/executor.rs Outdated
Comment on lines +86 to +90
IRInstruction::Pack { type_id } => {
let item = program
.structs
.get(type_id.id())
.expect("struct type not found");

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Use the field count carried by Pack

The new IRInstruction::Pack variant requires both type_id and field_count, so this pattern omits a required field; it then accesses program.structs, although IRProgram has no such member. Consequently, every build of this commit fails before any struct program can be lowered or interpreted. Destructure and use the field_count already embedded in the instruction instead.

Useful? React with 👍 / 👎.

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.

1 participant