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.

CT (programming language)

From Esolang
Jump to navigation Jump to search
Not to be confused with Cyclic tag system.

CT is a programming language made as an emulation of cyclic tag systems. It has three commands:

CT Command Execution Equivalent BCT Command
0 If the leftmost data-bit is 1, append 0. 10
1 If the leftmost data-bit is 1, append 1. 11
; Delete the leftmost data-bit. 0

Computational class

It's Turing complete, as all cyclic tag systems can be compiled into this.

Why was it replaced with BCT?

It was merely to obtain a programming language written in binary instead of ternary.

Implementations

  • An interpreter in Python is available here.
  • A challenge to find an interpreter for CT on Code Golf Stack Exchange is available here.