kanlalang
v0.0.9
Published
CLI for Kanla-lang
Downloads
1
Maintainers
Readme
npm i -g kanlalang
enla
hel la "Hello kanla";
aythu kanla
kanlalang test.kanla
Hello kanla
This will be ignored
enla
// Write code here
aythu kanla
This too
enla
nod la a = 10;
nod la b = "two";
nod la c = 15;
a = a + 1;
b = 21;
c *= 2;
aythu kanla
enla
nod la a = 10;
nod la b = 10 + (15*20);
nod la c = "two";
nod la d = 'ok';
nod la e = kaali;
nod la f = nija;
nod la g = sullu;
aythu kanla
enla
hel la "Hello World";
nod la a = 10;
{
nod la b = 20;
hel la a + b;
}
hel la 5, 'ok' , nija , sullu;
aythu kanla
enla
nod la a = 10;
nodla eega (a < 25) aadre{
hel la "a is less than 25";
} illandre nodla {
hel la "a is greater than or equal to 25";
}
aythu kanla
enla
nod la a = 0;
madla ellivargu (a < 10) {
a += 1;
nodla eega (a == 5) aadre{
hel la "olg idini kanla ", a;
mundhe nodla;
}
nodla eega (a == 6) aadre{
saak bidla;
}
hel la a;
}
hel la "done";
aythu kanla