Harkan
- This is still a work in progress. It may be changed in the future.
Harkan is an esolang made by User:↑. It currently does not have an interpreter, but you can make one!
Basis
Harkan is built with the following starting command:
Harkan {
}
It is the main class where its contents are run.
Classes
The classes are areas that can be interconnected by running a part of the class.
Functions
Functions are inserted in classes, where the classes can be imported using Import Classes from [example.hkn]. This also imports the functions inside the classes and the commands inside them.
This is an example of the main class and a secondary class where the main class references the second class's function:
Harkan {
<insert code here>
Reference Function [Func] from [Example]
}
Example {
Func {
<insert code here>
}
}
Commands
Now it's the fun part. The commands are what is the core of this language. We have various commands.
Reference Function [x] from [y]
Import Classes from [x]
Define Variable [x] with Type [y] Containing [z]
This defines a variable called x with type y containing z.
Some possible inputs for the type are:
- Integer
- String
- Float
- Base-2
- Array
Create Dictionary [x] {}
This creates a Dictionary called x and the contents are inside the {}.
Example:
Harkan {
Create Dictionary [Dict] {
Rows [Fail, Success, Mark]
Columns [Boat, Type, Stop]
}
}