Make a new file and end it with .armt. Go in the config.json and change the script variable's value to the name of your script.
If you wrote a script, just run the compiler script and it will run.
Make a python script and create all your functions. Make a dictionary called Cmds. The name of each element is what you want it to be in the script. The value should be a list. The first thing in the list is the function. The second thing is how many arguments your command takes.
It is very easy. Just put the python file in the same folder as the compiler. Go into the config.json file and add the name of it to the libraries list.
# There are two methods of doing this in Armtal
# First
out str Hello,world!
# Spaces are not allowed when outputting a string
# Second
hello
# This program counts up
add 1
out sys int
jmp 1
If r is str then it will output s to the console. if r is sys and s is int/acc it will output the value of that register.
Sets the register of r with the value of s.
Does the action you chose with int and n
If a r (for example ==) b, run line l
Don't run the next line
Jumps to line l
Waits for n seconds
Does nothing
A comment (doesn't do anything)