cirbe
Jump to navigation
Jump to search
cirbe is an esolang that uses the following 16 unicode characters:
╺╹┗╸━┛┻╻┏┃┣┓┳┫╋
Rules
OR
A B v v ┗┳┛ v A+B
CANCEL
A B v v ┣━┛ v A&~B
TRUE
╺━ > 1
FALSE
0 < ━╸
SPLIT
A v ┣━┓ v v A A
A v ┏┻┓ v v A A
BRIDGE
A v B > ╋ > B v A
Disambiguation
Disambiguation SPLIT / CANCEL higher lower ╻ <╻v v┃<┏━┫ <-- SPLIT CANCEL --> ┣━┛ ┃v v╹ ╹ SPLIT / CANCEL left right v╻> >╻v SPLIT --> ┣━━━┫ <-- CANCEL v╹ ╹v
Extension
This extension allows for programs to loop There is one mandatory output that determines the Halt state
╹ H
For every output of the program, there exists an optional input for the previous state of the program (or initial program input)
A B C D ╻ ╻ ╻ ╻ . . . . . . . . . . . . . . ╹ ╹ ╹ ╹ ╹ A B C D H
Examples
Add two bits together
╻ ╻ ┣┳━┫ ┃┃┓┃ ┃┃┣┛ ┣╋┛ ┏┫┃ ┃┗┫ ╹ ╹
- Example input:
11
┓ ┓ ┣┳━┫ ┃┃┓┃ ┃┃┣┛ ┣╋┛ ┏┫┃ ┃┗┫ ╹ ╹
┓ ┓ ┣┳┛ ┃┃┓┓ ┃┃┣┛ ┣╋┛ ┏┫┃ ┃┗┫ ╹ ╹
┓ ╺┳┛ ┃┓┓ ┓┃┣┛ ┣╋┛ ┏┫┃ ┃┗┫ ╹ ╹
┓┓ ┓┣┛ ┣┛ ┏┫┓ ┃┗┫ ╹ ╹
┓ ┏┫┓ ┃┗┫ ╹ ╹
┓ ┓╺┫ ╹ ╹
┓┏ ╹╹
- Output:
10
Pulse
b B ╻ ╻ ┣┓┃ ┃┣┛ ┃┗┓ ┏ ╹ ╹ ╹ B p H