Long2

From Esolang
Jump to navigation Jump to search

User:Hex96 made an esolang called Long
So here's an actual good version. By User:Yes

Commands (this is worse quality than normal esolang lol)

The language's instruction set is exhausted by a twain of operations.

ASCII Character Output

In order to print an ASCII character, its character code must be employed in the following command:

PRINTTHEVALUEHEADEDAFTERTHISCOMMANDASACHARACTERFROMTHEAMERICANSTANDARDCODEFPRINFROMATIONEXCHANGEOHANDBYTHEWAYITSTHEEIGHTBITVERSIONNOTTHESEVENBITVERSION (ASCII code)

brainfuck Interpreter

A line of arbitrary brainfuck code may be interpreted using the command

INTERPETTHENEXTLINEASCODEFROMTHEESOTERICPROGRAMMINGLANGUAGEBRAINF**KBYEURBANMULERINIFORGOTWHICHYEARWITHATAPEOFTHIRTYTHOUSANDEIGHTBITCELLSALLINITIALLYSETTOZERO
(brainf**k code to interpret on the next line)

That's it.

Examples

Output the character A, corresponding to the ASCII code 65:

PRINTTHEVALUEHEADEDAFTERTHISCOMMANDASACHARACTERFROMTHEAMERICANSTANDARDCODEFPRINFROMATIONEXCHANGEOHANDBYTHEWAYITSTHEEIGHTBITVERSIONNOTTHESEVENBITVERSION 65

The following program invokes the brainfuck interpreter in order to execute its Hello World! program:

INTERPETTHENEXTLINEASCODEFROMTHEESOTERICPROGRAMMINGLANGUAGEBRAINF**KBYEURBANMULERINIFORGOTWHICHYEARWITHATAPEOFTHIRTYTHOUSANDEIGHTBITCELLSALLINITIALLYSETTOZERO
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

Interpreter

  • Common Lisp implementation of the Long2 programming language.