HAN is an interpreted, single-type esoteric programming language created by User:Aryantech123. It was created to act as a syntax for many smaller projects involving computer architecture. It is a simple language, with 3 basic types of commands and uses strict prefix notation. Only floating point variables are supported.
Each program is made up of commands, separated by newline characters. Indentation is strictly not allowed, and neither are blank lines. Programs are, thus, always a solid list of instructions. Commands are made up of tokens, which are separated by spaces. Overall, in HAN 1.3 patch 2, there are 3 basic types of commands- variable, algebra, and control.
Commands are structures similar to sentances. In general command follow the following syntax-
command arg1 seperator arg2 separator arg3
command is the command,
arg1, arg2, arg3 are the arguments, and
seperator are used to space everything out.
Variables are initialized at the time of declaration. They are declared using the
Variable names can include nearly every ASCII character except for spaces
In code, variables are always referred to by placing $ before their name.
Example: A variable A is declared by
let A is 10 and refers to as
The current commands in the language:
||Declares a variable varname, and initializes its value. Variables are always floating point.|
||Sets value of variable |
||Adds v2 and v3, and stores result in v1. |
||If a <= b, it skips the next n lines. Any comparison operator can be used.|
||SImmilar to skipif, except executes the next n lines if condition is true.|
||Jumps to a given line. Lines are indexed from 1.|
||Ends the program. Mandatory.|
pr Hello, world! end
pr Forever! goto 1 end
let a is 1 let n is 7 let t is 0 doif $a < 11 4 mul $t is $a and $n pr $t add $a is $a and 1 goto 4 end