Files
BrainAssembly/docs/syntax.md

20 lines
499 B
Markdown
Raw Normal View History

To create a comment, begin a line with a hash (#) symbol, like python.
2025-10-06 12:52:38 +11:00
## create var *bytes = Value
2025-10-06 10:50:14 +11:00
2025-10-06 12:52:38 +11:00
Creates the variable "var" with a set number of bytes allocated to it, and initialises its value.
**IMPORTANT:** The number of bytes cannot be modified later.
2025-10-06 12:52:38 +11:00
Example: `create var *5 = "Hello"`
## print var
Prints the value of `var` to the console, where `var` is a variable.
Example: `print var`
## set var = Value
Changes the value of an already created value.
Example `set var = "World"`