"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.

While the commands are meant to be all in upper case (except the arguments), the interpreter is case insensitive. That means that awoglet, Awoglet and AwoGlet will be treated the same as AWOGLET.

Syntax

THE [program name]
    is a program's beginning. Supports an additional argument for its name.
    No commands (except for DISK) can be used before THE.

AWOGLET {variable name}
        creates a variable with no value (if a variable with that name doesnt exist), that can be accessible using @BANANA.
        Calling this command while there's still a variable with no value will result in that variable getting overwritten (or deleted).
        The newly created variable is not a true variable, and only a few commands support @BANANA.

HOW [number (integer) or AMAZING (0) or EPICFAIL (1) or a number variable]
    ends the program and returns a number (or variable).
    Has its own variables AMAZING and EPICFAIL, that return 0 and 1 respectively.

DISK [text]
     is a comment.
     Does not actually require an argument and can be placed before THE.

SEOHLRY {variable name or @BANANA} [+/-]{value}
        sets a variable (or @BANANA)'s value, if it exists.
        It also has a useful feature: increment (+) and decrement (-).
        They're added before a value, and allow you to add and substract numbers from variables, but only those that can be converted to a number.
        If a variable is not a number, if increment is used, the value will be appended to the variable. If decrement is used, an error will be thrown.
        They're only supported for existent variables.

WHY {variable name}
    outputs a variable's value.

SPACESHIP {variable name or @BANANA}
          prompts the user to enter a value, the sets a variable (or @BANANA)'s value to that value.
          If receives null (user doesnt enter anything), the next command will be skipped.

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

SWING {line}
      jumps to a specific line.

[] is optional, {} is required. @BANANA indicates a temporary variable that doesnt have a value (created using AWOGLET)

Editor

Output


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