A humorous programming language based on the Polish sitcom "Świat według Kiepskich", implemented in OCaml.
There's a VS Code extension with syntax highlighting, auto-completion, and snippets. Get it from the marketplace.
Ferdek uses quotes from the TV show as keywords. Instead of boring while you write CHLUŚNIEM BO UŚNIEM, and instead of print you get PANIE SENSACJA REWELACJA.
Some examples:
CO JEST KURDE- start programPANIE SENSACJA REWELACJA- printPASZOŁ WON- subtractionCHLUŚNIEM BO UŚNIEM- while loopHELENA MAM ZAWAŁ- catch exceptionA POCAŁUJCIE MNIE WSZYSCY W DUPĘ- breakW TYM KRAJU NIE MA PRACY DLA LUDZI Z MOIM WYKSZTAŁCENIEM- null
curl -fsSL https://raw.githubusercontent.com/kupolak/ferdek/main/scripts/install-full.sh | bashYou'll need:
- OCaml (4.08+) and opam
- Menhir
Then:
# macOS
brew install ocaml opam
opam init && opam install menhir
# Linux
sudo apt-get install ocaml opam
opam init && opam install menhir
# Build
git clone https://github.com/kupolak/ferdek.git
cd ferdek
make
./scripts/install.shRun tests with make test.
Run a file:
ferdek examples/hello.ferdekREPL:
ferdek --replCompile to executable:
ferdek -c examples/hello.ferdek -o my_program
./my_programCompile and run:
ferdek -r examples/hello.ferdekCO JEST KURDE
RYM CYM CYM Declare a variable
CYCU PRZYNIEŚ NO piwa
TO NIE SĄ TANIE RZECZY 6
RYM CYM CYM Add 2 more
O KURDE MAM POMYSŁA piwa
A PROSZĘ BARDZO piwa
BABKA DAWAJ RENTĘ 2
NO I GITARA
PANIE SENSACJA REWELACJA piwa
MOJA NOGA JUŻ TUTAJ NIE POSTANIE
It's a joke project but PRs are welcome if you want to add more features or fix bugs.
MIT
All quotes and character names from "Świat według Kiepskich" are property of their respective copyright holders. This project is for educational and entertainment purposes only.
