JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 7
  • Score
    100M100P100Q17469F
  • License GPL-3.0

Esoteric programming language based on polish.

Package Exports

  • kochanowski
  • kochanowski/dist/src/cli.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (kochanowski) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

About

Kochanowski Programming Language (KPL) is an esoteric language based on the Polish language which makes an easy coding problem next to impossible, especially if you don't speak Polish.

Installation

Prerequisites

Installation guide

The following steps will guide you through the process of setting up and configuring the kochanowski package in your project.

  1. Begin by creating a new project directory and initializing it with the Kochanowski package. Run the following command in your terminal:

    npm create kochanowski
  2. After the project has been initialized, navigate to your project directory and locate the indeks.kpl file. This file contains your KPL script. To compile and run the script, use the following command:

    npm start

Quickstart

Write anything in Polish, and it will come to appear. If you encounter a "bug", don't be afraid, as it's working as intended. You can use our pre-made examples:

Fibonacci sequence

Zdefiniuj zmienną pierwsza liczba o wartości równej 1.
Wyczaruj zmienną druga liczba o wartości równej 0.
Spłódź zmienną trzecia liczba o wartości równej 0.

Powtórz przez 10 powtórzeń następujące polecenia.

Zmiennej trzecia liczba przypisz pierwsza liczba dodać druga liczba.
Przypisz wartość druga liczba zmiennej pierwsza liczba.
Zmiennej druga liczba przypisz trzecia liczba.

Wydrukuj druga liczba.

Przejdź do następnej iteracji.

Creating a triangle out of characters

Zdefiniuj tekst o wartości X.

Powtórz przez 5 powtórzeń następujące polecenia.

Wydrukuj tekst.
Dodaj X do tekstu.

Przejdź do następnej iteracji.

Simple grade to comment algorithm

Zdefiniuj zmienną ocena o wartości równej 5.

Drukuj "Twój wynik mnie nie satysfakcjonuje".

If you have any trouble you can always check the /data directory in the module and follow this chart:

flowchart TB
    A[Zdefiniuj zmienną X o wartości 5.] -->|fa:fa-book Find words' meaning from synonyms.json| B[create var X value 5]
    B -->|fa:fa-gears Format to a function using schemas.json| C["create_variable(X, 5);"]

Contributors

CheryX
CheryX
Electruu
Electruu
ssz256
ssz256
ssz256
Nessie-XII