(script())

From Esolang
Jump to navigation Jump to search

(script()) is a esolang created by User:Ractangle. This language based on JavaScript

Commands

Command Meaning
break Terminates the loop.
throw [any type] Puts the following string into a stack.
!case! if [condition]:/orif/isn't Condition commands.
try Used for the loop command.
catch Outputs the highest string in the stack.
let <type> [name] {[value]} Creates/Edits a variable.
func is [name]{args}(...) Makes a function.
loop [condition](...) Makes a loop of a code. It repeats until the condition is true.
prompt Makes a prompt, the input is then pushed into the stack.

Examples

This section is still a work in progress. It may be changed in the future.

Hello World

throw 'Hello World'
catch

Truth-machine

let int i {prompt}
case if {i=0}(throw '0'|catch)
case isn't (loop 1 (throw '1'|catch))