Skip to content

antigrav-technologies/TheLang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

TheLang

TheLang is an esoteric programming language (esolang) derived from Brainfuck, encoded in base1 using the word "the".

How It Works

To rewrite a program from Brainfuck to TheLang, follow these steps:

  1. Convert each command to its corresponding number:
    • < - 0
    • > - 1
    • + - 2
    • - - 3
    • . - 4
    • , - 5
    • [ - 6
    • ] - 7
  2. Convert the reversed sequence to an octal (base8) number.
  3. Enter that many "the"s.

Example

Let's encode the Brainfuck code --.:

  1. Convert to numbers: --. becomes 334.
  2. Reverse the sequence: 334 -> 0o433 -> 283.
  3. Append "the" that many times:
the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the the

Compiling

Simply run the make utility. Requires gcc.

Usage

To run a TheLang program, use the provided interpreter:

./TheLang <input.the>

License

I can't stop you anyway. Do whatever you want.

About

Esoteric programming language derived from brainfuck.

Resources

Stars

Watchers

Forks

Packages

No packages published