20 lines
529 B
Markdown
20 lines
529 B
Markdown

|
|
# 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 SASM for Linux: `gcc src/asm/sasm.c src/asm/tokenize.c src/file_utils.c src/asm/assembler.c -o sasm -O3`
|
|
|
|
## Syntax
|
|
### Example "Hello, World!" Program
|
|
```kotlin
|
|
fun main() {
|
|
println("Hello, World!\n")
|
|
}
|
|
``` |