drafting megakakal
This commit is contained in:
parent
5c62cbff7a
commit
88ec4b2af4
1 changed files with 36 additions and 0 deletions
36
docs/roska/megakakal/index.md
Normal file
36
docs/roska/megakakal/index.md
Normal file
|
@ -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 ...
|
Loading…
Add table
Reference in a new issue