⠀ ⠀⠀⠀⠀⠀⠀⠀/> フ
| _ _|
/'ミ _x 彡
/ |
/ ヽ ノ
/ ̄| | | |
| ( ̄ヽ__ヽ_)_)
\二つ
Pukiclang is interpreter for pukiclang programming language.
All that pukiclang is capable of you can find in this file
let age = 228;
let name = "Pukic :)";
let result = 10 * (20 / 2);
let myArray = [1, 2, 3, 4, 5];
let yay = {"name": "Ruslanchik", "age": 16};
let add = fn(a, b) { return a + b; };
let add = fn(a, b) { a + b; };
let fibonacci = fn(x) {
if (x == 0) {
0
} else {
if (x == 1) {
1
} else {
fibonacci(x - 1) + fibonacci(x - 2);
}
}
};
let twice = fn(f, x) {
return f(f(x));
};
let addTwo = fn(x) {
return x + 2;
};
twice(addTwo, 2); // => 6