Syntax depends on the language. Two common general algorithms are an endless loop or a jump back to the start.