If you want to program the script, go "inside" the scratch project, run the project and answer "program" to the prompt. Then, edit the list there. If you want to run the script, run the project and answer "run" to the prompt. Here is the syntax for simple calculations: [operator] [number] [number] Here is an example of valid code: * 20 4 That code multiplies 20 by 4 and "prints" it to the console. To make notes that will be ignored by the interpreter, Use "#" and a space, then your note(s). To make variables, type "var [name] [value]" Here is an example that creates a variable called "x" and gives it a value of 17: var x 17 To get the value of variable(in the example, x), type "getvar [name]". As an example, here is how you can get the value of x: getvar x To make a function, use this code: func [name] [other syntax] To call a function, do this code: callfunc [name]
I have no idea how I figured out the tokenizer, or pretty much any of this project. I did this without help. V1.0 - Calculate V1.1 - Variables V1.2 - Very simple functions + print statements