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.

XXLogic

From Esolang
Jump to navigation Jump to search

XXLogic is a logic-based esolang I did because why not?

Commands
Instruction Meaning
A, N, X, R, O AND, NOT, XOR, NOR, and OR gates (in that order)
S Swaps the 2 wires coming into it.
I Input
O Output
| - Vertical and horizontal wire.
/ \ Diagonal wire.
q When 2 wires both coincide, q lets them each duplicate to each go both ways.
^v<> Forces the direction of information in a wire (diode)

Honestly, all these gates could be replaced with just NOR if you wanted to be exceptionally evil, but I won't do that here.

Example program

Addition of 2 single-bits.

I I
\ /
 q-A-\
 X   |
 \   /
  \ /
   S
  / \
  O O

Special case: 1 + 1

1 1
\ /
 q-A-\   (1 AND 1 = 1)
 X   |   (1 XOR 1 = 0)
 \   /
  \ /
   S
  / \
  1 0

Computational class

Prolly Turing complete, but I'm not sure so let me know at User talk:CodePentuplets48 if you prove or disprove that it is.