r/ProgrammingLanguages • u/omnimistic • Mar 06 '26
Discussion can i call this a programming language?
i wanted to make the algorithms they teach in CS class actually executable so i made AlgoLang. can i call this a programming language?
27
Upvotes
View all comments
Show parent comment
2
u/Inconstant_Moo 🧿 Pipefish Mar 06 '26
It's easy enough. GOSUB is like GOTO except that when you make the jump, you also push the line number you're jumping from on a stack. Then when you hit a RETURN you pop that off the top of the stack and jump back to the next line after that.
If by "linear" you mean it starts executing from the top, that's easy, just write your subroutines at the end of your script.