Everything's processed pretty much sequentially. If you treat every item as a list, it draws an arrow from one thing to another. Awesome.
But what if you want something cooler? Say, conditionals. Yeah. those are cool. So if you have that, you need my magical notation which involves lots of indentation.
Home?
Oh noes, the condition's answer was No
This has an arrow pointing from the thing above
Yaay, the answer was yes
Stuff that follows...
Ellipse'd elements end with periods.
Also, this is how you'd run it:
cat algorithm.pseudo | python parser.py | dot -Tsvg > blah.svg
Hey, great code. Thanks for sharing. I converted this code into Javascript and based on WebGraphiViz. So it's now able to run independently on a web browser. Go ahead and try it.
https://github.com/leopck/codeflow
https://fridayswithfaraday.com/codeflow/
Your code falls under Sample 6.