36 lines
518 B
Markdown
36 lines
518 B
Markdown
# 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 ...
|