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.

ABCDEF

From Esolang
Jump to navigation Jump to search

ABCDEF is an esolang by User:Hammy with a tree to store data.

The commands

Command Meaning 1 Meaning 2
A The next command uses meaning 2 instead of meaning 1. Halt.
B Create a new child node from the pointer. Delete the current node at the pointer. Go up.
C Go to the next sibling node of the current node, in the order they were created. Wraps around. Go up.
D Increase the value at the current node. Decrease the value at the current node.
E Take the values of the current node's children and add them together. Set the current node to the result. Go down, specifically to the first child of the current node.
F Jump to the xth instruction in the program, zero-indexed, where x is the value of the current node. Only execute the next instruction if the current cell is equal to 0.