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

Closed
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.
saqut closed this issue 2026-06-14 21:53:24 +03:00
Sign in to join this conversation.
No description provided.