Jaksel programming language is a new programming language, very modern, easy to learn, using Indonesia-slang language. No programming experience required.
npm install -g jaksel-language
// run
jaksel example/example1.jaksel
[TOC]
Example :
literally umur itu 21
spill "Umur lu " + umur
kalo umur lebih gede 20
spill "Elu tua"
literally umurgua itu umur + 10
spill "Kalo gua umurnya " + umurgua
kalo umurgua lebih gede 30
spill "gua lebih tua"
udahan
kalogak
spill "dasar bocil"
udahan
spill "Udahan ah"
literally jumlah itu 10
spill "Jumlah: " + jumlah
whichis jumlah itu 11
spill "Jumlah: " + jumlah
literally isHidup itu positive vibes
spill "is hidup :" + isHidup
fomo i endup 10
kalo i lebih gede 3
spill "loop ke " + i
udahan
udahan
Some command just like javascript, the only different is keyword and this language will translate to javascript and run as javascript. I know, this is just for fun.
Assign variable
literally foo itu "hello world"
// let foo = "hello world"
seriously foo itu 123
// const foo = 123
Reassign variable
whichis foo itu "hello world 2"
// foo = "hello world 2"
Boolean
literally foo itu positive vibes
// let foo = true
literally foo itu worth it
// let foo = true
literally foo itu negative vibes
// let foo = false
spill "Hello world"
// console.log("Hello world")
spill foo
// console.log(foo)
kalo foo itu "Hello world"
spill "its hello world"
udahan
// transform to
if(foo == "Hello world"){
console.log("its hello world")
}
kalo foo lebih gede 3
spill "its bigger than 3"
perhaps foo itu 3
spill "foo is 3"
kalogak
spill "its smaller than 3"
udahan
// transform to
if(foo > 3){
console.log("its bigger than 3")
} else if (foo == 3) {
console.log("foo is 3")
} else {
console.log("its smaller than 3")
}
Comparison :
itu
: ' == ',gak
: ' != ',lebih gede
: ' > ',lebih kecil
: ' < ',lebih gede sama dengan
: ' >= ',lebih kecil sama dengan
: ' <= '
fomo i endup 10
kalo i lebih gede 3
spill "loop ke " + i
udahan
udahan
// transform to
for (let i = 0; i < 10; i++) {
if (i > 3){
console.log("loop ke " + i);
}
}
so about my_story
literally umur itu 21
spill "Umur lu " + umur
thats it sih
call my_story
so about fungsi_param_banyak a b c
spill "a: " + a
spill "b: " + b
spill "c: " + c
thats it sih
call fungsi_param_banyak 3 4 5
trust issue
spill "Something wrong"
toxic "Error message"
backstab
spill "Catch error"
yaudahlahya
spill "finish finally"
udahan
// transform to
try {
console.log("Something wrong");
throw new Error("Error message");
} catch {
console.log("Catch error");
} finally {
console.log("finish finally");
}
This project just for fun, I don't want to hurt anyone. Just from idea "what if jaksel language is a programming language" and make it true. This project only for education purpose, not for production ready.