In English the imperative is (outside of "let's") inseparable (to me) from commanding the person you are addressing (second person) to do something: "Stop walking!" is identical to "You stop walking!" and vice versa.
Because in English "you" can be tú or vosotros, I can understand having distinct conjugations for these. I also understand a nosotros conjugation (like "let's").
But I have seen the translation of the Scratch computer programming language using infinite-form imperatives. "decir 'algo'" and "repetir hasta que <...>"
What does this mean? Why is the imperative being used?
Is there a way to intuit it, or a parallel in English?