--Unless

From Esolang
Jump to: navigation, search

Tutorial

The header file is .unless .

The simplest possible --Unless program

That is a Null program.

R

Run something. (This can run anything)
It usually runs a code.
A tab or 4 spaces should be inserted like this:
R:
    do_nothing.c
If the running thing doesn't have a header:
    Then, run a function.
    If the running is like this:
    R:
        CLASS:
            FUN
    Then, run the function in the class.

Functions

You can make a function.
Like this:
FUN:
    R:
        functioncode.c
To call it, use it like this:
R:
    MYFUNCTION
: is the calling command.

Objects

You can also make a class by this:
CLASS:
    FUN:
        R:
            myfunction.c
You can call it like this:
R:
    CLASS:
        FUN

:something

That Isn't necessary, but if you want your code to be longer, you certainly can do that.
Like this:
CLASS:
    FUN:
        R:
            myfunction.c
        :R
    :FUN
:CLASS
R:
    CLASS:
        FUN
    :CLASS
:R

Computability

It is Turing-complete, because it can make a Brainfuck interpreter:
R:
    interpreter.c
How can it be Turing-incomplete if it can make a Brainfuck interpreter?