Asama 5.3 — Implement interpreter VM (saqut run execution) #57

Open
opened 2026-05-26 19:52:48 +03:00 by saqut · 0 comments
Owner

Goal: Execute saQut programs by walking the AST or interpreting IR directly.

Files to create:

  • src/backend/interpreter.hpp (new)

Requirements:

  • Interpreter class that walks AST and executes.
  • Supports: variable declaration, assignment, binary/unary expressions, if/else, while/for/do-while, break/continue, return, function calls.
  • REPL mode uses the interpreter.

Success criteria:

  • saqut run source.sqt executes correctly.
  • Return value propagates correctly.
**Goal:** Execute saQut programs by walking the AST or interpreting IR directly. **Files to create:** - src/backend/interpreter.hpp (new) **Requirements:** - Interpreter class that walks AST and executes. - Supports: variable declaration, assignment, binary/unary expressions, if/else, while/for/do-while, break/continue, return, function calls. - REPL mode uses the interpreter. **Success criteria:** - saqut run source.sqt executes correctly. - Return value propagates correctly.
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#57
No description provided.