O(א₀)
O(א₀) (pronounced O of alpeh null) is a esolang based on User:Yayimhere's discord username: (stack)[X, I, X, A]->[I] OR A=X which is incomplete as it is: (stack)[X, I, X, A]->(stack)[I] OR: {A=X->(stack)[A, I, A, A]}¡{? A=X -> A & X !(A & X) OR X->A}. any user can add a section with their commands and stuff. it has to be computable no running other esolangs and such. go to ∫∫∫∫∫∫∫∫∫∫∫∫∫ to add non commands and to see rules
syntax
all the syntax of O(א₀) put into sections
state
all state commands or basically commands that do stuff but no IO or something
-> and <-
these simply changes state to the next state of the stack. so for example lets say we popped X from the stack then basically you can write a -> and it returns the stack without X:
(stack)[X, I, X, C]
then your program encounters pop command and then a ->:
(stack)[X, I, X, C]-> / ->(stack)[I, X, C]
the <- is just go back to the start
/ and !
/ changes the state of the stack by popping its off the stack. and ! just makes a thing dissaper. this only works for making a function rule. in the example for arrows the /
command is used. using !:
F(stack)[X, I]->!(stack)[I]->(stack)[X]
now F pops the last value on the stack
\ and ?
\ is push a value. so for example:
(stack)[X]->\(I)->(stack)[X, I]
and ? is make thing appear so:
F(stack)[X, I]->?(stack)[Y]->(stack)[X, I, Y]
more can be added
other commands
commands
Command | What it do | Origin |
---|---|---|
H | print "Hello, World!" | HQ+ |
Q | Quine | HQ+ |
+ | Increment the accumulator | HQ+ |
o | Output the accumulator | deadfish |
* | solve the halting problem for a finite-state automaton | Original |
█ | print only █ s and \x20 s |
∫∫∫∫∫∫∫∫∫∫∫∫∫ |
@ | end | Befunge |
` | print next character (and skip it) | Original |
~ | acc=~acc | -25 bytes (O o) |
² | square accumulator | 5 |
CƆ | repeat code until acc = 0 | Original |
Ⅹ | print newline | Original |
r | reverse execution | Original |
; | skip next command | 5 |
i | input number from user | <>< |
B | x bottles of beer | Original |
#* *# | Comments | Original |
️ | fizzbuzz | Original |
א₀ | acc = Infinity | Original |
a+ | Increments value A. | User:Ϫ |
a- | Decrements value A. | User:Ϫ |
ab* | Multiplies A and B. | User:Ϫ |
ab+ | Multiplies A and B. | User:Ϫ |
a∫ | Outputs A. | User:Ϫ |
+a | Pushes A to the stack. | User:Ϫ |
>a | Pops a value and sets A to it. | User:Ϫ |
Examples
Hello, World!
H
or
`H`e`l`l`o`,` `W`o`r`l`d`!
Quine
Q
or
█
XKCD Random Number
++++o
or
`4
ASCII Art of "Hi"
█@ █ ███ █ █ █ █ █ ███ █ █ █ █ █ █ █ ███ █
99 bottles of beer
+++²+²~++~ C+ o` `b`o`t`t`l`e`s` `o`f` `b`e`e`r` `o`n` `t`h`e` `w`a`l`lⅩ o` `b`o`t`t`l`e`s` `o`f` `b`e`e`rⅩ `T`a`k`e` `o`n`e` `d`o`w`n`,` `p`a`s`s` `i`t` `a`r`o`u`n`dⅩ~+~ o` `b`o`t`t`l`e`s` `o`f` `b`e`e`r` `o`n` `t`h`e` `w`a`l`lⅩⅩ~+~Ɔ `0` `b`o`t`t`l`e`s` `o`f` `b`e`e`r` `o`n` `t`h`e` `w`a`l`lⅩ `0` `b`o`t`t`l`e`s` `o`f` `b`e`e`r` `G`o` `t`o` `t`h`e` `s`t`o`r`e`,` `b`u`y` `s`o`m`e` `m`o`r`eⅩ `9`9` `b`o`t`t`l`e`s` `o`f` `b`e`e`r` `o`n` `t`h`e` `w`a`l`lⅩ
or
+++²+²~+~B
Infinite Loop
;rr
or
+CƆ
Truth-machine
iCoƆo
FizzBuzz
+++²+²️
Infinite:
א₀️