Truthlang

From Esolang
Jump to navigation Jump to search

Truthlang is an esoteric programming language created by User:Oshaboy. It's not quite a Truth Machine.

Overview

0: prints 0 then halts
1: prints 1 indefinitely

Only 1 command is allowed per program. Whitspace is ignored. Everything else is a Syntax Error. Therefore there are only 2 valid programs. This isn't quite a Truth Machine because as opposed to recieving input from stdin its "input" is the source code. You can't even write a Truth Machine in it. A Truth Machine is NOT a valid interpreter for Truthlang unless it ignores Whitespace and checks for Syntax Errors.

Implementation

A Compiler. It compiles to Machine Language through C. So it is blazing fast. Not an interpreter like inferior esolangs.