(script())
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.
(script()) is a esoteric programming created by Ractangle language based on JavaScript and Javagony (also for some reason it fails to fetch if you try to give it to a poe.com ai bot)
Commands
Command | Meaning |
---|---|
break | Terminates the loop. |
throw | Puts the following string into a stack. |
if/orif | Condition commands. |
try | Used for the loop command. |
catch | Outputs the highest string in the stack. |
variable | Creates a variable. |
let | Edits a variable. |
func is | Makes a function. |
loop | Makes a loop of a code. It reapeats until the condition is true. |
prompt | Makes a prompt, the awnser is thrown into the stack. |
Examples
Hello World
throw 'Hello World' catch
Truth-machine
variable n is ( prompt catch ) if n is 0 ( throw '0' catch ) orif n is 1 ( loop( try throw '1' catch ) )
Cat
prompt catch
Infinite loop
loop( try throw 'inf' catch )
Deadfish implementation
variable n is ( prompt ) variable a is ( throw 0 ) if n is i ( variable n is ( n + 1 ) ) if n is d ( variable n is ( n - 1 ) ) if n is s ( variable n is ( n * n ) ) if n is o ( throw (n) catch )