Komali is bored
An interpreted golfing language written in D
git clone https://github.com/PrinceKomali/kib
cd kib
make
The compiler used by make is gdc. DMD also works but isn't exactly a drop-in replacement because of compiler flags. If you want to use DMD (e.g. you use windows) you can compile src/*
instead.
!
: Logical NOT
&
: Logical AND
|
: Logical OR
{
: Loop
}
: If truthy (Pops stack)
0 - 9
: Push number
`
: Push compressed string
'
: Push string
*
: Pop stack twice and multiply/replicate
+
: Pop stack twice and add/concatenate
-
: Pop stack twice and subtract/remove
<
: Push compressed integer
?
: Pop stack twice; if first is truthy re-push the second
\
: Push single character string
^
: Pop stack twice and exponentiate
b
: Pop stack, index into builtins library and execute
c
: Pop stack and index into constants list
g
: Push input to stack
i
: Increment
j
: Pop array from stack and join without separator
p
: Pop stack and print without newline
P
: Pop stack and print with newline
s
: Square
t
: Test something
v
: Pop string and split, or pop array and spread out over stack
x
: Break/exit
0c
Prints "Hello, World!"
`
Y9-&.7Q)%2'L%8V-/4(A6b?*Y,$;1G%3`
Prints "the quick brown fox jumps over the lazy dog"
0{idd0bP9 5b}x}{
Prints the first 10 Fibonacci numbers (TODO: add more examples)