From b1d257168f5dc8614f67b3d7925320fa01d7940e Mon Sep 17 00:00:00 2001 From: SpookyDervish <78246495+SpookyDervish@users.noreply.github.com> Date: Mon, 22 Dec 2025 13:23:45 +1100 Subject: [PATCH] wrote some more Sylt syntax --- README.md | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 6f3970c..8a300fc 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,27 @@ To compile the VM for Linux: `gcc src/main.c src/vmbl.c src/exception.c src/file SASM and Sylt are written in Python for now as I'm too mentally challenged to write C code rn. -## Syntax +## Sylt Syntax +*(totally not Kotlin lmao)* ### Example "Hello, World!" Program ```kotlin -fun main() { +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 +} ``` \ No newline at end of file