here is the coding language:
MicroScript (MS) language design
1. Language Name: MicroScript (MS)
2. Target Use and Scope:
Purpose: Displaying LED patterns and console-like text, with basic logic.
Audience: Teenagers with no prior text coding experience.
Complexity: Medium; relatively easy to learn, but with capability for loops and conditional logic.
3. Core Commands:
Drawing:
DRAW_CIRCLE=x-y-r-c
DRAW_RECT=x-y-w-h-c
DRAW_LINE=x1-y1-x2-y2-c
DRAW_PIXEL=x-y-c
CLEAR
Text/Display:
PRINT “text”
SCROLL “text”
SET_TEXT_COLOR=r-g-b
SHOW_CURSOR
HIDE_CURSOR
Control Flow:
ONSTART{
}
FOREVER{
}
WAIT ms
PAUSE_UNTIL [TRUE]
LOOP_WHILE [TRUE]
ENDLOOP
IF [BUTTON_A_PRESSED | BUTTON_B_PRESSED] THEN
ELSE
ENDIF
Input/Output:
PLAY_SOUND sound
WAIT_INPUT
SET_VAR=name-value
CHANGE_VAR=name-changeby
GET_VAR=name
CONSOLE_PRINT(“text”)
CREATE_FILE(“FILE_NAME”)
DELETE_FILE(“FILE_NAME”)
READ_FILE(“FILE_NAME”)
WRITE_FILE(“FILE_NAME”)[FILE_CONTENT]
SAVE_FILE(“FILE_NAME”)
4. Syntax and Structure:
Command Separator: A newline character (\n).
Command Format: Commands use a word-based syntax, e.g., COMMAND arg1 arg2.
String Delimiters: Double quotes (").
Comments: A double backslash (\\).
Case Sensitivity: MicroScript commands are case-insensitive for ease of use.
save_file is used to save all of your previously inputted text.