ScratchData LogoScratchData
Back to DarthPickley's profile

Interpreter 1.2

DADarthPickley•Created August 27, 2009
Interpreter 1.2
4
1
145 views
View on Scratch

Description

This program interpreter is in a language very similar to BASIC ans such, and it can read its instructions from a single line of code, so you only have to input once. how to use: First, enter the program name. then, use these commands: PRINT: - PRINT displays a string in the output. the PRINT structure is: PRINT: "strex"; #exprex\ \ where strex is the string you want to display. and exprex is an evaluatable expression. that generates a string that is displayed. you can use either "strex" or #exprex\ as an output thing, but so far, the #exprex\ part of the project is completely glitched up. WAIT: waits for a given amount of time. the WAIT structure is: WAIT: numex \ or WAIT: #exprex\ \ where numex or the evaluation of the expression exprex is the amount of time you want to wait. use BACKSPACE to delete the last line of code if you make a mistake. or want to add or change. finally, use END to end your program. when you are ready to run, enter RUN. that is all that works right now! NOTE: if you RUN without an END statement, it has an error and runs forever. I think... I may be calling this ScratchBasic soon... it sounds a whole lot cooler than interpreter. well to me at least. finally, I used a modifyed version of Paddle2See's scripts for his project Calculator http://scratch.mit.edu/projects/Paddle2See/580724 for the expression evaluation scripts. thanks.

Project Details

Project ID661355
CreatedAugust 27, 2009
Last ModifiedAugust 27, 2009
SharedAugust 27, 2009
Visibilityvisible
CommentsAllowed

Remix Information

Parent ProjectView Parent
Root ProjectView Root