Asama 2.3 — Add --format=dot for AST visualization #43

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

Goal: Export the AST as a Graphviz DOT file for graphical visualization.

Files to create/modify:

  • src/format/dot.hpp (new)
  • src/cli/commands/ast.hpp

Requirements:

  • Implement astToDot(ASTNode*) function.
  • Each node becomes a labeled box.
  • Parent-child relationships become directed edges.
  • Output is valid DOT format.

Success criteria:

  • saqut ast source.sqt --format=dot -o ast.dot produces valid DOT file.
  • Result renders as a readable tree with dot.
**Goal:** Export the AST as a Graphviz DOT file for graphical visualization. **Files to create/modify:** - src/format/dot.hpp (new) - src/cli/commands/ast.hpp **Requirements:** - Implement astToDot(ASTNode*) function. - Each node becomes a labeled box. - Parent-child relationships become directed edges. - Output is valid DOT format. **Success criteria:** - saqut ast source.sqt --format=dot -o ast.dot produces valid DOT file. - Result renders as a readable tree with dot.
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#43
No description provided.