Files
VMBL/README.md
2025-12-22 13:23:45 +11:00

38 lines
797 B
Markdown

![Sylt Logo](assets/sylt.png)
# VMBL
- Virtual
- Machine
- Based
- Language
But uhh that's the name of the VM itself, the name of the programming language I made is Sylt, named after the German island.
To compile the VM for Linux: `gcc src/main.c src/vmbl.c src/exception.c src/file_utils.c -o vmbl -O3`
SASM and Sylt are written in Python for now as I'm too mentally challenged to write C code rn.
## Sylt Syntax
*(totally not Kotlin lmao)*
### Example "Hello, World!" Program
```kotlin
def main() {
println("Hello, World!\n")
}
```
### Variables
```kotlin
def main() {
// define a variable
var x = 123
// define a constant
const y = 456
// define two variables on one line
var x, y = 1, 3
// you can do the same with constants!
const x, y = 1, 3
}
```