So I made my own programming language
I call it OliCode
Here's the documentation
This is a language based upon memory manupulation.
You have 50 values in memory that can be manipulated by incrementing and decrementing a pointer.
There are several commands that you can use.
All of them are separated by spaces (space bar).
Increment a value in memory by an amount
To do this, write "a" followed by the amount you want to increment.
That increments the current memory value by 10.
That increments the current memory value by 5 and then 2, ending up with 7 as the value.
Decrement a value in memory by an amount
To do this, write "s" followed by the amount you want to decrement.
That decrements the current memory value by 10.
That decrements the current memory value by 5 and then 2, ending up with -7 as the value.
Yes, you can have negative integers in memory values.
Only integers though. No decimals.
For the pointer values, let's visualize it.
That shows the pointer at memory value 0.
That moved the pointer one value to the right.
That moved the pointer one value to the left.
If you want to move to a specific memory value, do the following.
That moved the pointer to memory value 5.
Remember that memory values start at 0, so memory value 5 is really the sixth memory value.
Loops are quite fun
When the memory pointer is in a loop, it will only break out once the memory value at the end of the loop is 0.
a5 l s1 e
That l is a lowercase L, not a capital i.
l will start the loop and e will end it.
When the program reaches e and the current memory value is not 0, it will go back to l.
Printint to the console is quite easy.
That was it.
It uses ASCII character codes, so printing 72 will not print 72.
It will print H.
That's about it.