Box Drawing
Jump to navigation
Jump to search
| Designed by | User:Pifrited |
|---|---|
| Appeared in | 2025 |
| Computational class | Unknown |
| Reference implementation | Unimplemented |
Box Drawing is an esolang by User:Pifrited in 2025.
Introduce
─ │ ┌ ┐ └ ┘ ├ ┤ ┬ ┴ ┼
A command in Box Drawing is:
head(any) name(num/str/cat/lis) [code(statement/fun)] input(any) end
And also,
- Codes run same when you rotate/flip it.
- Codes run rotational if it meet “─┘”.
Example:
─┐┌┬┬┬┬┬┐ ┌┬┬┬┬┐ │
└┴┘││││└─┘├┼┤└┘ └┐
├┤├┤ └┴┘ ┌┤
└┘└┘ ├┘
├─┬┐
├─┴┘
├─┬┐
├─┴┘
└┐
│
┌┘
├┬┐
├┼┤
├┴┘
├┐
└┘
Both equal to:
print(6);
Head
┐ ┌ └─┘ num ┬─┬ └─┘ str ┬┐┌ └┴┘ var ┐┌┬ └┴┘ fun ┬┬┬ └┴┘ lis
Name
num type
Binary:
┬┬ - start ├┤ - 1 ││ - 0 ││ - 0 ├┤ - 1 ├┤ - 1 └┘ - end (total: 25)
Or also base 2n:
┬┬┬ - start ├┤│ - 1 │││ - 0 │├┤ - 2 ├┼┤ - 3 ├┤│ - 1 └┴┘ - end (total: 301)
str type
Same as num type, but will translate to ASCII/Unicode(UTF-8).
┬┬┬┬┬┬┬┬┬┬┬┬ ││├┤││││├┤├┤ ││││││││├┤││ ││├┤├┤├┤├┤││ ├┤││├┤├┤├┤││ ││││││││││││ ││├┤├┤├┤├┤├┤ ├┤├┤├┤├┤├┤││ ││││││││││││ └┘└┘└┘└┘└┘└┘ “H e l l o !”(ASCII)
cat type
Use after fun head.
CatID + InCatID (See Defined functions)
─┐┌┬┬┬┬┬
└┴┘││││
├┤├┤
└┘└┘
^ ^CatID:2
fun ^InCatID:1(print)
lis type
More than one name:
┬┬┬─┬─┬┬┬┬┬┬┬┬┬┬┬┬┬─┐ ┌┬┬
└┴┘ └─┘││├┤││││├┤├┤ └─┘││
││││││││├┤││ ├┤
││├┤├┤├┤├┤││ ├┤
├┤││├┤├┤├┤││ └┘
││││││││││││
││├┤├┤├┤├┤├┤
├┤├┤├┤├┤├┤││
││││││││││││
└┘└┘└┘└┘└┘└┘
“H e l l o !” 6
Note:must put “─” between items
Code
fun
Just a function.
statement
If:
┌─(true code)── ─┬(condition)┬─┤ └...........┘ └─(false code)── (When no condition, run true code)
Yes, just if.
Input
Any num/str/lis/var.
End
Stop statement or program.
┬┬ ┬┐ └┘ └┘
Defined functions
Examples
Hello, world!
─┐┌┬┬┬┬┬┬─┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┬┐
└┴┘││││└─┘││├┤││││├┤││││├┤├┤││││││├┤└┘
├┤├┤ ││││││││├┤││││││├┤├┤││││││
└┘└┘ ││├┤├┤├┤├┤├┤││├┤├┤││├┤├┤││
├┤││├┤├┤├┤├┤││││├┤││├┤││││
││││││││││││││├┤││├┤││││││
││├┤├┤├┤├┤├┤││├┤├┤├┤├┤├┤├┤
├┤├┤├┤├┤├┤││││├┤├┤├┤├┤├┤││
││││││││││││││││││││││││││
└┘└┘└┘└┘└┘└┘└┘└┘└┘└┘└┘└┘└┘
Cat
─┐┌┬┬┬┬┬┐┌┬┬┬┬┬┬┐
└┴┘││││└┴┘││├┤└┘
├┤├┤ ├┤└┘
└┘└┘ └┘
Truth-machine
┌┐
├┤┌┐ ┌┐
┌┬┐││├┤┌─┐││┌┐
┌┘└┴┴┴┴┴┘ └┴┴┴┘
─┐┌┬┬┬┬┬┐┌┬┬┬┬┬┐ ┌┬┬┤ ┌┬────────────┐
└┴┘││││└┴┘││├┤└─┘││└┐┌┬┬┬┬┬┐ ┌┬┬┤└┬┬┐ ┌┬┬┬┬┬┐┌┘
├┤├┤ ││└┘ └┘ └┴┘││├┤└─┘├┤├┐├┤└─┘├┤││└┴┘
└┘└┘ ├┤ ││└┘ └┘└┘└┘ └┘└┘
└┘ ├┤
└┘