ScratchData LogoScratchData
Back to BoyKetchup's profile

TomatoPaste Editor and Compiler v0.1

BOBoyKetchup•Created December 11, 2015
TomatoPaste Editor and Compiler v0.1
7
7
270 views
View on Scratch

Instructions

-All lines must end in semi-colons. -Double quotes "" surround all strings. -Booleans are 1 or 0 -Curly brackets surround all code blocks. -Dollar signs appear before variable references. -Variables' values are accessed with JUST their name. -Invalid function names are skipped. Invalid variable names will cause an error. -Unless you plan to update your program whenever I update TomatoPaste, you should maximize compatibility. Line format: [function] [arguments]; (ignore square brackets) To insert a comment, start the line with /. The result of all functions is stored in the variable "LastReturn". YOU CANNOT DIRECTLY MODIFY LastReturn! (If the stuff above makes no sense, keep reading) The following functions are available: Function | Arguments (optional are marked with []) | Description ---------------------------------------------------- if | Boolean, code block | Runs code only if the boolean value is true. else | Code block | Runs code only if previously run function returned a true value (If statements do this if they receive a false value) var | Name (string), [value] | Creates a new variable and assigns its value. log | Value | Adds a value to the log (right side of screen). title | Title, version (string), author | Posts a title line at start. It is recommended to make this the very first line of your program. set | Variable reference, value | Sets the value of a variable. add | Value 1, value 2 | Adds two values. subtract | Value 1, value 2 | Subtracts two values. multiply | Value 1, value 2 | Multiplies two values. divide | Value 1, value 2 | Divides two values. mod | Value 1, value 2 | Gets the remainder of the division of two values. equals | Value 1, value 2 | Checks whether two values are equal. greater | Value 1, value 2 | Checks whether the first value is larger than the other. lesser | Value 1, value 2 | Checks whether the first value is smaller than the other. conc | String 1, String 2 | Joins two strings or values. input | [Message] | Asks the user for input. It also waits, so you can use it as a "Press any key to continue..." kind of thing. call | Code block, [function arguments...] | Runs a code block, including one stored in a variable, but the only variables it can access are the values passed to it (They are accessed as ARG1, ARG2, and so on). callTurbo | Code block, [function arguments...] | Does the same as call, but runs without screen refresh. return | Value | Sets the LastReturn variable to a value. while | Boolean variable reference, code block | Repeatedly runs the code block until the variable referenced is false or 0. wait | Time in seconds | Pauses the script for x seconds.

Description

Utilizes Leafino's font engine. Go here to run your program: https://scratch.mit.edu/projects/91036416/ There are a few bugs; please post any that you find below.

Project Details

Project ID91078037
CreatedDecember 11, 2015
Last ModifiedMay 14, 2018
SharedDecember 12, 2015
Visibilityvisible
CommentsAllowed