I am interested to see how a for loop / while loop would be implemented as an automaton. I am having difficulty imagining how that would work. Say the while-loop did this:
var i = 0
while (i < 10) i = i + 1
Not sure what happens if that were implemented as an automaton (what the states and transitions would be, and where the operation i = i + 1
would occur in the automaton). Wondering if one could show the main states and transitions of this if it were an automaton.
WHILE
loop is pretty much the defining thing that it cannot do. – Jörg W Mittag Jun 22 '18 at 13:09