esolang

Symblicity

Every character is an instruction, even the space. The program counter can run either way, and a function is stored backwards.

2026 · Turing complete: unknown · ●●● hard · esolangs.org

Tested with 2 known programs · Test method

Run it

Expected: HelloWorld!

The idea

Symblicity was made in 2026. It is a low-level machine with five 8-bit registers, a stack that works from both ends, 64 KiB of memory and a program counter that can run forward or backward through the source. Every character but the line breaks means something. A space skips the next instruction, so it cannot be used to lay out the code, and a TAB starts a comment.

Read the story

Numbers are built from bits. The digits 0 to 7 add 1, 2, 4 up to 128 to the register A, so 4320 adds 16 + 8 + 4 + 1, which is 29. Letters jump. A runs on to the next a in the current direction, and g to the next G.

The machine

CharDoes
0 to 7Add 2 to that power to A
8 9Subtract 1 or 2 from A
+ - * / % ^ \| &Put A op B into R2
\ : ; ` | Switch the register bank; swap A and B; swap B and R2; clear A
= < > ! ?Skip the next instruction if A is equal, less, greater or other than B; if R2 is 0
spaceAlways skip the next instruction
' . " ,Read a byte or a number into A; print A as a byte or a number
@ $ _Push A; pop into A; switch the end of the stack
{ }Run forward; run backward
[ ] ~A loop that repeats; leave it
#Move A + 1 places in the current direction
( )Call and return
lettersJump to the next letter of the other case
w y x XSet the low and high address bytes; write and read memory

The banks are R0 and R1 or R3 and R4 as A and B, and R2 is shared. The first parenthesis pushes its position, and the other kind returns to just past it. The specification also has file I/O for z and Z, a clock byte in memory and sound for T U V. In this implementation there are no files, the clock counts steps so that a run replays, and no sounds are loaded, so those letters jump like the others.

Example

The Hello World builds each letter from the one before.

The Hello World builds each letter from the one before. 36 makes 72, an H, and " prints it. There is no space in it, because a space would skip.

Expected: 29

The function convention. M jumps over the function to m. The call `)#A} pushes its position, runs into } and turns back, and A finds the a at the end of the function. The body runs backward, so it is stored reversed; this one, `50" , prints !. On the way out 1 sets A to 2, the space skips the (, { turns forward and ( returns to the #, which now jumps over A}. Then the main program prints 1.

Expected: !1

Further

Stack-based

Write your own in Run Convert a program from Symblicity

Implementation

JavaScript interpreter, source and command line

A JavaScript interpreter, used in the browser and on the command line. Id: symblicity.

Command line

shib run symblicity -e '4320'
shib manual symblicity

Source

Module
langs/wiki/ports.js
Interpreter
langs/wiki/symblicity.js

Docs: Kernel instructions · The .shib format · Command line · Adding a language

Source esolangs.org (CC0) · Edit on esolangs.org