We are currently working on new rules for what content should and shouldn't be allowed on this website, and are looking for feedback! See Esolang:2026 topicality proposal to view and give feedback on the current draft.

Ok

From Esolang
Jump to navigation Jump to search

Ok is an esolang that is Ok, get it? ok nevermind. It was created by User:Hajunsheng in 2025.

Overview

There is an accumulator. If it reaches -1, the program halts.

  • E will increment the accumulator
  • K will decrement the accumulator
  • S will output the character in the table in the next section corresponding to the accumulator's value.
  • F will set the accumulator to zero.
  • C will check if the key corresponding to the accumulator in the table below is pressed at the moment and if not, it will increment the accumulator.
  • G will check if the accumulator is 0, if not it will skip the 2 commands in front of it.
  • Y will jump to the Nth command starting from 0, where N is the accumulator's value.
  • A will wait a moment. In the reference interpreter it waits 0.1 seconds.

Character table

Number Character
1 A
2 B
3 C
4 D
5 E
6 F
7 G
8 H
9 I
10 J
11 K
12 L
13 M
14 N
15 O
16 P
17 Q
18 R
19 S
20 T
21 U
22 V
23 W
24 X
25 Y
26 Z
27 .
28 ?
29 !
30 1
31 2
32 3
33 4
34 5
35 6
36 7
37 8
38 9
39 0
40 @
41 #
42 $
43 %
44 ^
45 &
46 *
47 (
48 )

External resources