--Unless

From Esolang
Jump to navigation Jump to search

--Unless is invented by User:A.

Tutorial

R

Run something. (This can run anything)
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

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

Computational Class

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