Evinocu

From Esolang
Jump to navigation Jump to search

Evinocu is an Esoteric programming language created by User:Buckets in 2022.

Commands Instructions
A() This is A function.
= Sets the Function/variable to Something on the other Side.
[i] Input.
[Letter other than i.] Integer Variable.
{} Output.
<> Possible conditions.

Cat program:

A([i])={[i]}

Truth-machine Program:

A([i])=<[i]=0 {0}
 [i]=1 A(1)>

"Hello, World!" Program:

A()={Hello, World!}

FizzBuzz Program:

[a]=1
A([a])=<[a]/15=[b] {FizzBuzz}[a]=[a]+1:A([a])
 [a]/3=[b] {Fizz}[a]=[a]+1:A([a])
 [a]/5=[b] {Buzz}[a]=[a]+1:A([a])
 {[a]}[a]=[a]+1:A([a])

A+B Problem:

A([i])=[a]
[b]=[i]+[a]
B()={[b]}

99 bottles of beer Program:

[a]=99
A([a])=<[a]=0 {No bottles of beer on the wall,
No bottles of beer.
Go to the store, buy some more,
99 bottles of beer on the wall.}
 {[a]}{ bottles of beer on the wall,}{[a]}
{ bottles of beer.
Take one down, pass it around,
}[a]=[a]-1:A([a]>