"The Awoglet How 6 Language" Interpreter

"The Awoglet How 6 Language" is a esoteric programming language (or is it?) created by me. It is, of course, inspired by The Awoglet How 6, and is simply made as an attempt to make a custom programming language. (and i gotta say, that is a pretty good attempt)

Also, its used in LittleBigAwoglet 2!

Starting with Version 4, commands, variables and functions (FIRE) are case-insensitive.

Things to know

Syntax

THE
    is a program's beginning.
    No commands (except for DISK) can be used before THE.

AWOGLET {name}
        creates a variable with no value.
        Will throw an error if you try to make a variable that already exists.

HOW [variable/value/keyword]
    ends the program or function and returns a number (functions can return a string).

DISK (or |) [whatever]
     is a comment.
     Does not actually require an argument and can even be placed before THE.

SEOHLRY {variable} {variable/value/keyword}[+/-]
        sets a variable's value, if it exists.
        Adding + or - lets you add or substract a value in a variable.
        Substracting a number from a string will make that string shorter by the number.

WHY {variable/value/keyword}
    outputs a value.

WHEN {variable/value/keyword} {statement: =, >, <, =>, or =<} {variable/value/keyword}
     compares two values with a statement.
     All statements except for = will act differently based on a variable's type.
     If a value is a number, it will get compared like you'd expect. If not, the value's length will be compared instead.
     If the statement if true, the next command will be ran. If not, it will be skipped.

SWING {variable/number}
      jumps to a specific line.
      Inside functions, the line number is relative to the function definition, with 1 being the first command in the function.

FIRE {variable/"UHH"} {function} [param [param ...]]
     runs a function, with optional parameters.
     If the function is external, it always gets passed an object containing all variables.
     If you dont want to save the returned value anywhere, you can write "UHH" (without quotes) instead of a variable.

SPACE {name}
      defines a function, which can then be called with FIRE.
      There is no function hoisting, but you can define functions before THE.
      Parameters can be accessed with #N, where N is the parameter number, starting with 1.

SIP
    ends a function definition.
    If you forget this, the program will not work.

[] is optional, {} is required.

Reserved variables (keywords):

In this interpreter you have access to the following functions (via FIRE):

Editor

Output


Back to index, Examples, Version 4, Version 3, Version 2