Files
VMBL/README.md
SpookyDervish bd07952569 make file added
2025-12-26 18:56:51 +11:00

39 lines
943 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`
To compile the SYLT compiler for Linux: `gcc src/sylt/main.c src/sylt/exception.c src/sylt/token.c src/file_utils.c src/sylt/lexer.c -o sylt -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
}
```