;x

From Esolang
Jump to navigation Jump to search

A piece of insanity by User:A(). This needs to be in a catergory called char vomit.

Commands

  • (n)=:;x - let x = n
  • (n)-:;x - return x-n
  • (n)+:;x - return x+n
  • /(n):;x - return x/n
  • i:,;: - input
  • o:;:n - output n as ascii char
  • (y):(x):(z) - if x is y, goto z
  • (n)!:,; - returns not n
  •  ::::: - run the code stored in the nop "variable"
  • ` - end of line (without it, the code doesn't run and instead the top is assigned that code)

Syntax

(cmd)cmd1

Uses for nop

let's say that we want a function that returns 3+x we do this:

(i:,;:)=:;x`
((3)+:;x)=:;y
::::`


Programs

Addition

(i:,;:)=:;x`
(i:,;:)=:;y`
0=:;z`
((48)-:;x)=:;x`
((48)-:;y)=:;y`
((y+):;x)=:;z`
((48)+:;z)=:;z`

Truth-machine

(i:,;:)=:;x`
o:;:n`
(x):(1):(2)`

infinte loop

(1):(1):(1)`

or

:::::
:::::`