Files
VMBL/README.md

38 lines
797 B
Markdown
Raw Normal View History

2025-12-20 18:25:53 +11:00
![Sylt Logo](assets/sylt.png)
2025-12-19 16:32:24 +11:00
# VMBL
2025-12-20 18:25:53 +11:00
- Virtual
- Machine
- Based
- Language
2025-12-20 16:59:15 +11:00
2025-12-20 18:25:53 +11:00
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.
2025-12-21 09:44:16 +11:00
To compile the VM for Linux: `gcc src/main.c src/vmbl.c src/exception.c src/file_utils.c -o vmbl -O3`
2025-12-22 13:21:09 +11:00
SASM and Sylt are written in Python for now as I'm too mentally challenged to write C code rn.
2025-12-20 18:25:53 +11:00
2025-12-22 13:23:45 +11:00
## Sylt Syntax
*(totally not Kotlin lmao)*
2025-12-20 18:25:53 +11:00
### Example "Hello, World!" Program
```kotlin
2025-12-22 13:23:45 +11:00
def main() {
2025-12-20 18:25:53 +11:00
println("Hello, World!\n")
}
2025-12-22 13:23:45 +11:00
```
### 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
}
2025-12-20 18:25:53 +11:00
```