Skip to content

Commit dcf2e46

Browse files
committed
add: AST Visualizer
1 parent 6932039 commit dcf2e46

File tree

3 files changed

+425
-21
lines changed

3 files changed

+425
-21
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,15 @@ $ pdm run check
2525

2626
## Screenshots
2727

28+
Example run of the visualizer
29+
```sh
30+
$ python tools/ast_visualizer.py < samples/ifs.lox > out.dot
31+
```
32+
2833
Visualization of AST for `5 * 6 / 3 - 2 / 5 * (6 + 8)`
2934
![Visualization of AST](images/ast_visual.png)
3035

36+
![Visualization of AST for triangle program](images/triangle.png)
3137

3238
## Additional features / modifications / challenges
3339

images/triangle.png

88.2 KB
Loading

0 commit comments

Comments
 (0)