UNITE
Jump to navigation
Jump to search
UNITE is a pretty small esolang with a little to no purpose.
Overview
UNITE only consists of two commands, which are explained in the table below.
Header text | Header text |
---|---|
unite x with y | Connects x and y with a space as a separator and stores them in memory. |
Prints whatever is in memory. |
The "unite" command overwrites the memory with its output.
Hello, World!
Here's a simple "Hello, World!" program written in UNITE:
unite Hello, with World! print
Interpreters
Here's an example of an interpreter in Python 3. The interpreter takes the code from a file.
try: with open("code.txt") as f: code = f.read() except: print("Error in loading \"code.txt\"; file might not exist. Press any key to exit...") input() code = code.split("\n") uniteout = "" for line in code: if line.lower().startswith("unite"): uniteout = " ".join(line.replace("unite ", "").replace(" with ", "||||====").split("||||====")) elif line.lower() == "print": print(uniteout) input("\nCode has finished running. Above is the output. Press any key to exit...")