(script())

From Esolang
(Redirected from (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 User:Ractangle language based on JavaScript and Javagony

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
)