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

Open
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.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: saqut/saqut-compiler#60
No description provided.