From 88ec4b2af48ce96ab500328bd602834bfb188c64 Mon Sep 17 00:00:00 2001 From: "jt@jakest.us" Date: Thu, 6 Feb 2025 20:37:00 +0200 Subject: [PATCH] drafting megakakal --- docs/roska/megakakal/index.md | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 docs/roska/megakakal/index.md diff --git a/docs/roska/megakakal/index.md b/docs/roska/megakakal/index.md new file mode 100644 index 0000000..f7afa3b --- /dev/null +++ b/docs/roska/megakakal/index.md @@ -0,0 +1,36 @@ +# MegaKakal + +rOSka official programmin language. Embracing simplicity and compiling +into assembly. + +!!! WARNING + This is a spec draft. Nothing is made yet + +## if + +else is just a part you jump over in assembly lol, so EZ XD +''' +if (condition) { + ... +} else { + ... +} +''' + +## loop + +We have only a single type of loop where you are responsible to decide when +to check and how to exit. Break is just a goto:after-loop ? + +''' +loop { + ... + if (condition) { + break; + } +} +''' + +## func, label ... + +## goto, call, return ...