To start, press the green flag. Here's a list of all commands and their uses: help: Gives a list of all commands. (This has a long return value- you might want to clear the screen first.) Usage: help say: Repeats back the message you put after it. Usage: say hello var: Defines a variable. Variable names should be alphanumeric and one word. Usage: var x 10 vars: Provides a list of all variables. Usage: vars clear: Clears the screen. Usage: clear add: Prints the sum of two variables. Usage: add a b subtract: Prints the difference between two variables. Usage: subtract a b multiply: Prints the product of two variables. Usage: multiply a b divide: Prints the quotient of two variables. Usage: divide a b input: Stores input from user and stores it in a variable Usage: var a null input a wait: Waits x seconds Usage: var x 5 wait x new: Creates a new program Usage: new program1 run: Runs a program Usage: run program1 How to use the compiler: First, create a new program with the new command. This should make all of the text on the screen disappear. Now, type in a line of code. Make sure it's perfect, because there's no going back in lines! (Note: Currently, only the help, say, var, and math commands work.) Press enter when you're done with your line. It should show up as the top line on the screen. Keep entering lines of code until you're done. When you're done, type done and hit enter. To run the program, simply enter the command "run (program name)". Only the return values of the commands will show up. (i.e. the message you put in with say, the outcome of an add command, etc.) Example: new add var a var b say what is the first number? input a say what is the second number? input b add a b done run add
I started working on this for Scratch Electronic Wars. Who knows if I'll finish it in time for Gen 2 though. Changelog: Alpha: 8/17/16 1.0.0: Official Release! 8/18/16 1.1.0: Added Compiler 8/19/16 1.1.1: Added more commands to the compiler, added "input" command 8/20/16 1.1.2: Added "wait" command