Asama 1.2 — Implement stdin reading mode #41

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

Goal: saqut - reads source code from standard input.

Files to modify:

  • src/cli/args.hpp

Requirements:

  • When - is passed as positional argument, read all stdin until EOF.
  • Works with all commands: saqut run -, saqut tokens -, etc.
  • Remove the current TODO stub and implement fully.

Success criteria:

  • echo "int main() { return 42; }" | ./saqut run - works.
  • cat file.sqt | ./saqut tokens - works.
**Goal:** saqut - reads source code from standard input. **Files to modify:** - src/cli/args.hpp **Requirements:** - When - is passed as positional argument, read all stdin until EOF. - Works with all commands: saqut run -, saqut tokens -, etc. - Remove the current TODO stub and implement fully. **Success criteria:** - echo "int main() { return 42; }" | ./saqut run - works. - cat file.sqt | ./saqut tokens - works.
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#41
No description provided.