A programming language written in Scratch How to navigate: ---------------------------------- Up and down arrow keys: Navigate through code lines Space: Edit lines ` + p: Execute program ` + r: Reset code Flag: Switch back to editor mode How to code: ---------------------------------- Tags: 'plain': Plain text, number, boolean, e.g. '7', 'hello', 'false' No loc or var is referenced. 'loc': Referencing output of lines in code, e.g. '4' tagged 'loc' outputs line 4 value. Also supports relative referencing, e.g. 'r-2' in line 5 refers to line 3, 'r4' in line 2 refers to line 6 'var': Referencing variable value, e.g. 'hello' tagged 'var' outputs variable named 'hello' Comment: Use '#' at the end of a line to write notes. Keywords: 'pass': Doesn't do anything. 'goto [tag] [value]': Jumps to a line of code. 'value [tag] [value]': Referable via 'loc' tag. 'oper [tag1] [tag2] [operator] [value1] [value2]': Calculates and outputs, referable via 'loc' tag. Supports operators: '+', '-', '*', '/', '%', '=', '>', '<', 'and', 'or', 'not' (2nd value is ignored), 'join', 'contains' (1st value contains 2nd value?) 'var [tagname] [tagvalue] [name] [value]': Sets a variable. 'end': Ends the program. 'print [tag] [value]': Prints the value. *No newline.* 'printnl [tag] [value]': Prints the value with newline. 'newline': Adds newline. 'wait [tag] [value]': Waits in a specified number of seconds. 'input': Gets input from the user. Referable via 'loc' tag. 'rawval [plain value]': Output includes space characters. Referable via 'loc' tag. Special vars: '_null': Empty string. '_space': Space character. '_mousex': Mouse position in X axis. '_mousey': Mouse position in Y axis. '_timer': Seconds since the program is executed. '_username': User's username. Time vars include: '_current_year', '_current_month', '_current_day', '_current_dayofweek', '_current_hour', '_current_minute', '_current_second'. Example code: ----- #Hello world program in C//, although not the shortest rawval Hello world! #Create a string at loc 1 var plain loc hello r-1 #Store the string with a var printnl var hello out the string wait plain 1 1 second goto plain 1 forever end -----