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.
Truelang
Jump to navigation
Jump to search
Truelang is a minimalistic programming language, designed to help User:Jaxcoder create an operating system. The link to it is right here: TrueOS. The format is name[input(array)] The list of instructions is here:
| Name | Inputs | Description |
|---|---|---|
| Math | x,y,z,a | Sets var z to do math op a to x and y |
| Join | x,y,z | Sets var z to join string x and string y |
| Nand | x,y,z | Sets var z to x Nand y |
| Setv | x,y | Sets var y to x |
| Jump | x | Jumps to x |
| Defi | x,y | creates a function with name x and function y |
| Runc | x,y | sets y to the output of the code x |
| Draw | x,y,z,a,b | draws a line with point x,y on the screen and z,a with the hex color b |
| Inpt | x,y | asks for input with prompt x and sets the output to var y |
| IsMT | x,y,z | if mouse pointer is touching point x,y then set var z to true else set var z to false |
| Ifrn | x,y,z,a | if x then run y else run z and set output to a |
You might be asking, Where's the output? well, the output is the var called "$Out".
Hello world program:
Setv["Hello, World!", $Out]
Truth machine (really difficult to make):
Inpt["1 or 0?", "truth"] Ifrn["truth","Join["truth",1,"truth"] Set["$Out","truth"] Jump[1]","Set["$Out",0]"]