Asama 8.1 — Full struct support: definition, instantiation, field access #60

Closed
opened 2026-05-26 19:53:08 +03:00 by saqut · 0 comments
Owner

Goal: Users can define and use struct types.

Files to modify:

  • src/parser/parser.hpp, ast.hpp
  • src/symbol/
  • src/backend/

Requirements:

  • struct Point { int x; int y; } defines a type.
  • Point p; declares a variable.
  • p.x accesses a field.
  • Struct type checking: field must exist, type must match.
  • C transpile and interpreter both support structs.

Success criteria:

  • Struct definition, instantiation, field access work end-to-end.
**Goal:** Users can define and use struct types. **Files to modify:** - src/parser/parser.hpp, ast.hpp - src/symbol/ - src/backend/ **Requirements:** - struct Point { int x; int y; } defines a type. - Point p; declares a variable. - p.x accesses a field. - Struct type checking: field must exist, type must match. - C transpile and interpreter both support structs. **Success criteria:** - Struct definition, instantiation, field access work end-to-end.
saqut closed this issue 2026-06-14 21:53:15 +03:00
Sign in to join this conversation.
No description provided.