This is a stack-based programming language that is WIP How to use: - Click on see inside and go to the "Code Editor" sprite. There should be some custom blocks definition (DO NOT TOUCH ANY OF IT BECAUSE IT MIGHT BREAK THE PROJECT) and a "When I receive" block. Use the custom blocks given in the sprite to code under the "When I receive" block. After you finished coding, click the green flag and you will have a preview of the code. Press r to run and press e after finished running to preview to your editor again. ====BLOCKS AND HOW TO USE THEM==== 1. Operations on the stack Push (value): pushes the value onto the stack Pop: pops the top of the stack Add/Sub/Mul/Div: performs the top 2 elements of the stack in order of pushing, pops them and then pushes the new value Concat: concatenates the top 2 elements of the stack in order of pushing, pops them and then pushes the new value 2. Operations on the memory Decl: creates a new memory slot Sto: stores the stored value which is at the top of the stack to the second to the top of the stack in the memory address, which must be loaded. Pops the 2 top value of the stack Load: loads the top value of the stack on the address to the stack, the old top value must be popped first 3. Operations on the terminal Print: pops the top value and prints it to the console (without a newline) Println: same as Print but with a newline Clear: clears the terminal 4. Others #: acts as a comment to your code
Now implementing: Control flow Future plans: input/output