Bleph!

From Esolang
Jump to navigation Jump to search

Bleph! is an experimental stack-based esolang made on june 21 saturday 2025 by user:A(). Bleph! is called Bleph! because code in it looks like utter garbage.

Commands

Commands
Command Function
_ If the first item on the Stack is 1, increase else decrease
? Picks one of the first 2 items on the Stack and puts it on the top while removing the other item
+ Increase the first item on the Stack
- Decrease the first item on the Stack
O Outputs the first item on the Stack and pops it off
~ Outputs the first item on the Stack as the corresponding Bleph! character
[...] Repeats until the first item on the Stack is 0
# Replace the top item with the users input as the corresponding Bleph! character code
^ Add new item at the top
v Add new item at the bottom
! Pop the first 2 items off, add them together, and put the result at the top
@ Pop the first 2 items off, subtract them, and put the result at the top (Top minus bottom)
: Duplicate the first item
s Swap the first two items

Bleph! character codes

Character Bleph! code ASCII code
(space) 0 32
a 1 97
b 2 98
c 3 99
d 4 100
e 5 101
f 6 102
g 7 103
h 8 104
i 9 105
j 10 106
k 11 107
l 12 108
m 13 109
n 14 110
o 15 111
p 16 112
q 17 113
r 18 114
s 19 115
t 20 116
u 21 117
v 22 118
w 23 119
x 24 120
y 25 121
z 26 122
A 27 65
B 28 66
C 29 67
D 30 68
E 31 69
F 32 70
G 33 71
H 34 72
I 35 73
J 36 74
K 37 75
L 38 76
M 39 77
N 40 78
O 41 79
P 42 80
Q 43 81
R 44 82
S 45 83
T 46 84
U 47 85
V 48 86
W 49 87
X 50 88
Y 51 89
Z 52 90
! 53 33
? 54 63
@ 55 64
# 56 35
$ 57 36
% 58 37
^ 59 94
* 60 42
& 61 38
( 62 40
) 63 41
_ 64 95
+ 65 43
- 66 45
[ 67 91
] 68 93
: 69 58
0 70 48
1 71 49
2 72 50
3 73 51
4 74 52
5 75 53
6 76 54
7 77 55
8 78 56
9 79 57

Simple programs

Cat program

A repeating cat program, terminating only as a sequela of a space character's (Bleph! character code: 0) specification, is presented:

^#[:~#:]

Hello world!

This program issues the message “Hello world!” to the standard output:

^++++++++++++++++++++++++++++++++++
:~[-]
+++++
:~[-]
++++++++++++
:~:~[-]
+++++++++++++++
:~[-]
:~[-]
+++++++++++++++++++++++
:~[-]
+++++++++++++++
:~[-]
++++++++++++++++++
:~[-]
++++++++++++
:~[-]
++++
:~[-]+++++++++++++++++++++++++++++++++++++++++++++++++++++
:~[-]

Truth machine

A truth-machine implementation shall define the following code's furnishment:

^#
-----------------------------------
-----------------------------------
[:O]

A very boring guessing game

Generates in an aleatory fashion either the number zero (0) or one (1) on the stack, queries the standard input for a character representing a choice from the same membership, and prints, upon a successful equiparation, the value zero (0); otherwise, if the user input deviates from the random number, signifies the mismatch via a -1 output:

^+
^?
^#----------------------------------------------------------------------
@:O

Addition

^#^#!O

Subtraction

^#^#@O

Interpreter