BitSwitch

From Esolang
Jump to navigation Jump to search

BitSwitch is an esolang made by User:Bloodyknucles.

BitSwitch
Designed by User:Bloodyknucles
Appeared in 2020
Memory system none
Dimensions one-dimensional
Computational class Finite state automaton
Major implementations See #Interpreter in Python 3
Dialects none
File extension(s)
BitSwitch Logo

Commands

Here is a table of the commands in BitSwitch:

Name Function
0-1 Outputs the other digit
b Outputs Itself (Requires Immediately Previous Binary Digit)

Interpreter in Python 3

import sys
while True:
   cmd = input("bitswitch > ")
   if cmd in DIGITS: print(int(not(int(cmd))))
   elif 'b' in cmd: print(cmd)
   else: print('Syntax Error')

External links

See also

Other languages operating on bits (implemented only):