We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.
StubScript
Jump to navigation
Jump to search
- This article is not detailed enough and needs to be expanded. Please help us by adding some more information.
StubScript is an extremely simplified esolang invented by User:A, so simple that it made this article a stub.
Syntax
It has only 1 instruction:
>
Move the first byte to the end of program. Any other command is an error. (They don't exist) That makes it extremely useless, and it is not capable of doing anything except for halting immediately or an infinite loop.
Examples
Infinite loop
>>
Golfed:
>
Interpreter
Written in JavaScript.
function stubScript(code)
{
code = code.split("")
for(var i = 0; i < code.length; ++i)
if(code[i] === ">")
code.push(code[i]);
else
throw new Error("Invalid command " + code[i]);
}