Files
BrainAssembly/docs/syntax.md

16 lines
458 B
Markdown
Raw Normal View History

To create a comment, begin a line with a hash (#) symbol, like python.
2025-10-18 19:55:02 +11:00
So far, the supported types are `bool` and `string`.
## create name type 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
2025-10-18 19:55:02 +11:00
Example: `create var bool 1 true`
2025-10-06 12:52:38 +11:00
## print var
Prints the value of `var` to the console, where `var` is a variable.
2025-10-18 19:55:02 +11:00
Example: `print var`