Skip to content

[feat] Uniform struct declarations#77

Merged
Zffu merged 11 commits intodev-unstablefrom
feat/uniform-struct-decls
Apr 8, 2026
Merged

[feat] Uniform struct declarations#77
Zffu merged 11 commits intodev-unstablefrom
feat/uniform-struct-decls

Conversation

@Zffu
Copy link
Copy Markdown
Member

@Zffu Zffu commented Apr 8, 2026

Changelog:

  • Changed the structured type declaration syntax from new <type> { fields.. } to { fields...}
  • Added enum value creation using the structured type declaration syntax
  • Made the struct initialize type less at first, allowing to remove the mention at creation
  • Changed array initialization syntax from {0.5} to [0.5]
  • Renamed from StructVariableInitializerValue to StructInitializer for clarity
  • Reworked array value initializer parsing
  • Added unsafe memory copy instruction (unsmemcopy)
  • Added a fall back to build_store when the value type is a child enum and the pointer is a parent enum to use unsmemcopy instead of failing
  • Added HIR type resolving system

@Zffu Zffu self-assigned this Apr 8, 2026
@Zffu Zffu merged commit 27ae91c into dev-unstable Apr 8, 2026
@Zffu Zffu deleted the feat/uniform-struct-decls branch April 28, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant