I think it would be crazy hard to do it in CLI but I am no expert and I would 
not mind if someone contradicts me :)

Once the .tex is written, it is not hard to produce a SVG from it. I use 
ImageMagick's convert CLI to convert from pdf to jpg, but we can also convert 
from pdf to svg.

I put this example in ChatGPT (3.5, Web) and I am shocked how easily it can 
convert any AST I provide to him in TikZ. It does not get the sibling distance 
always right, but I did not asked him to.

I would not be surprised if it could write me the converter AST->TikZ too 😅.

I tried to use GraphViz too but it packs nodes with similar names, so I get a 
digraph and not a tree.

Reply via email to