Isekai Quartet! KTX, GC5A and KotovScript!! (hehe, not quartet)
sunko
//...
end
//one line
//multilinescommentaries not allowed!
<typename> <variablename>
<typename> <variablename> = <statement>
int x
string s = 'abc'
Variables can be declared outside the block
<variablename> = <statement>
int x
x = 100
sunko
if <statement> then
else //not obligatory
end
end
sunko
int x = (2 * 2)
if (x = 5) then
!writeln '2 * 2 = 5'
else
!writeln '2 * 2 = 4'
end
end
sunko
label 100 //supports only integers
!write 1
goto 100
end
for <variablename> = <low> to <high> do
//...
end
for i = 1 to 10 do
!writeln i
end
while <statement> do
//...
end
int x = 1
while (x <= 10) do
!writeln x
x = (x + 1)
end
loop <int> do
//...
end
int x = 1
loop 10 do
!writeln x
x = (x + 1)
end
{<funcname> <arguments>}
int x = {RealToInt 13.37}
real y = {Random}
string s = {GetType {RealToInt 0.25}}
sunko
int i = 1
while (i < 10) do
int j = 1
while (j < 10) do
!write i*j
!write ' '
j = j+1
end
i = i+1
!writeln
end
!stopkey
end
sunko
for i = 1 to 9 do
for j = 1 to 9 do
!write (i*j)
!write ' '
end
!writeln
end
!stopkey
end