Bin-snake

From Esolang
Jump to navigation Jump to search

Bin-snake is a Python wrapper, in Binary. Bin-snake converts a Bin-snake file (.bs) to Python code, and then executes it to Python.

Writing Bin-snake

With an understanding of binary and binary/ascii conversions, as well as an understanding of Python, writing Bin-snake is quite simple. Just convert every character in a Python program to its Binary representation.

Bin-snake Files

A Bin-snake file (.bs) can be comprised of any characters, although only 1s and 0s will be recognized. Any other characters will be treated as comments.

Running Bin-snake

Running Bin-snake is quite simple. A(n) compiler/interpreter can be found on https://github.com/Mecaneer23/Bin-snake. Have fun!

Examples

Hello, world!

01110000011100100110100101101110011101000010100000100010010010000110010101101100011011000110111100101100001000000111011101101111011100100110110001100100001000010010001000101001