-
Notifications
You must be signed in to change notification settings - Fork 0
User‐Friendly‐Language Documentation
UFL (User-Friendly-Language) is designed to be an easy-to-use programming language with a focus on simplicity and accessibility. It allows users to create scripts with minimal complexity and straightforward syntax.
Keywords
let - Used to declare variables.
say - Outputs text to the user.
ifthis - Used for conditional statements.
orelse - Defines the alternative condition in an ifthis statement.
foreverloop - Creates an infinite loop.
Comments
Single-line comments: Begin with //. Example:
// This is a comment \
Multi-line comments: Enclosed between// | and \. Example: // This | is a multi-line comment \
-
=
- Assignment -
+
- Addition -
-
- Subtraction -
*
- Multiplication -
/
- Division
-
Open:
//
-
Escape:
\\
-
Close:
\\
-
initializeWindow()
- Initializes the UI window for the script. -
setTheme()
- Sets the theme for the UI.
-
button([text])
- Creates a button with the specified text.
Here is an example script for a simple calculator in UFL:
initializeWindow()
setTheme("Default")
say("Click buttons to perform operations.")
// Simple Calculator Example
| Enter numbers and click operations: |
button("7")
button("8")
button("9")
button("/")
button("4")
button("5")
button("6")
button("*")
button("1")
button("2")
button("3")
button("-")
button("0")
button(".")
button("=")
button("+") (See next page for UFL Studio Docs)