When a person that doesn't know how to create a programming language tries to create a programming language

Overview

Kochanowski Online

Spróbuj Kochanowskiego bez konfiguracji projektu! https://mmusielik.xyz/projects/kochanowski

Instalacja

  1. Stwórz nowy projekt przez npm init

  2. Zainstaluj najlepszy package kochanowski przez npm i -D kochanowski

  3. Stwórz plik konfiguracja.zojs.

    {
        "folderWyjścia": "./out",
        "folderWejścia": "./src"
    }
  4. Do package.json dodaj skrypt o treści kochanowski

  5. Utwórz foldery które zadeklarowałeś w konfiguracja.zojs

Jak używać

Kochanowski.js to jest przetłumaczony JavaScript z paroma zasadami:

  1. Zdania rozpoczynamy wielką literą
  2. Zdania kończymy kropką
  3. Nazwy własne (zmienne) rozpoczynamy wielką literą
  4. Pliki nazywamy po polsku np. główny.pol
  5. Nie używamy an*ielskich operatorów jak +, -. Używamy za to plus minus

Przykładowe polecenia

Kochanowski.js JavaScript
Drukuj("Witaj świecie"). console.log("Witaj świecie");
Jeżeli (X jest większe od Y) {}. if (x > y) {}
Stałej PI przypisz wartość 3,14. const PI = 3.14;
Zmiennej R przypisz wartość 5. let R = 5;
Dla (Zmiennej I przypisz wartość 0. I jest mniejsze od 5. I zwiększ o 1) for (let i = 0; i < 5; i++)
Dopóki (X jest mniejsze od 5) {} while (X < 5) {}
X zwiększ o 1. x += 1;

Lista zmapowanych slow ( i nie tylko )

Slowo w kochanowski.js Przetlumaczenie do js
, .
Brak null
Niezdefiniowane undefined
Dla for
Dopóki while
zwiększ o +=
Drukuj console.log
Jeżeli if
Stałej const
Zmiennej let
przypisz wartość =
nie jest równe !=
jest równe ==
jest większe od >
jest mniejsze od <
jest mniejsze bądź równe <=
jest większe bądź równe >=
Wyczekuj await
Złam break
Łap catch
Klasa class
Kontynuuj continue
Rób do
W przeciwnym wypadku else
Fałsz false
Prawda true
Funkcja function
Załącz import
Zwróć return
z biblioteki from
wewnątrz in
oraz ,
plus +
dodać +
dodane do +
minus -
odjąć -
odjęte od -
razy *
pomnożyć przez *
pomnożone przez *
pomnożona przez *
podzielić na /
podzielone na /
podzielona na /
podzielony na /
do potęgi **
do kwadratu **2
do sześcianu **3
kwadrat **2
sześcian **3
pierwiastek **0.5
ciasto Math.PI
pi Math.PI
𝝅 Math.PI
π Math.PI
losowaLiczba Math.random()
losowanie Math.random()
z upchniętym .
You might also like...

📜 33 concepts every JavaScript developer should know.

📜 33 concepts every JavaScript developer should know.

33 Concepts Every JavaScript Developer Should Know Introduction This repository was created with the intention of helping developers master their conc

Dec 31, 2022

If you want to know more about your favorite TV show then you've come to the right place!

If you want to know more about your favorite TV show then you've come to the right place!

Ultimate Show Guide We want to introduce you this web page that will help you to manage all your favourite TV series from place. 🖥️ Desktop version H

Jun 23, 2022

🌐 How well do you know your top-level domains (TLDs)?

TLD-quiz How well do you know your top-level domains (TLDs)? Sure, you know .com and .net. It's not your first time on the Web. You might even know .i

Apr 27, 2022

Know more about who starred your repository 🕵️

Know more about who starred your repository 🕵️

⭐️ Know Your Stargazers ⭐️ Know more about who starred your repository 🕵️ Why know-your-stargazers When developing an open source project, sometimes

Sep 15, 2022

A full documentation on everything we know about Alpha 1.0.16 versions.

Minecraft's Alpha 1.0.16 Versions Before you start, make sure to watch RetroGamingNow's video about this first. Highly influenced (technically a port

Dec 23, 2022

An easy to implement marquee JQuery plugin with pause on hover support. I know its easy because even I can use it.

Simple-Marquee Copyright (C) 2016 Fabian Valle An easy to implement marquee plugin. I know its easy because even I can use it. Forked from: https://gi

Aug 29, 2022

Own and know your contribution in Science - CitizenSci

Citizen Sci The Pinata API allows for decentralized storage of research data but not at the cost of losing control and privacy over the data as the ac

Sep 18, 2022

Easy way to know how many visitors are viewing your Github, Website

Visit Counter Easy way to know how many visitors are viewing your Github, Website Reference for Image query Usage Default Example page It can be your

Dec 24, 2022

Mute email noise from people you don't know.

All the love to supporters ❤️ You are fantastic if you're using emailgurus.xyz. Thank you so much for your support. Welcome to Emailgurus! Hi! Here is

Oct 28, 2022
Comments
  • Operatorzy matematyczne

    Operatorzy matematyczne

    Dodanie operatorów "plus" "minus" "razy" "podzielić na" oraz stałych jak "ciasto", "losowa liczba"

    opened by CheryX 2
  • Code Quality Grade

    Code Quality Grade

    In order to be sure that your code is well-written, before compiling the code checks that for you and outputs a score using these variables:

    • [x] Amount of syllabells per line (ideally 13)
    • [ ] #14
    • [x] Rhymes at the end of each line
    • [x] Length of the poem (code)
    • [x] Random number between 0 and 10
    enhancement 
    opened by CheryX 0
  • Hardcoded operators won't interfere with custom variables

    Hardcoded operators won't interfere with custom variables

    If the variable name contains any of the hardcoded operators, it will change the variable name. Example occurrence of the bug (in recent code):

    Zmiennej pluszak przypisz wartość 5. 
    

    In normal programming languages pluszak would be a variable, but not here! The plus part will be replaced by a + sign, which will cause a Syntax Error.

    (Yes, I realize it requires rewriting almost all of the codebase)

    bug 
    opened by CheryX 0
Releases(0.4.0)
  • 0.4.0(Oct 2, 2022)

    What's Changed

    • Making Kochanowski.js easier by @CheryX in https://github.com/CheryX/kochanowski.js/pull/11

    Full Changelog: https://github.com/CheryX/kochanowski.js/compare/0.3.0...0.4.0

    Source code(tar.gz)
    Source code(zip)
  • 0.3.0(Sep 11, 2022)

  • 0.2.8(Aug 30, 2022)

    Pełny Changelog: https://github.com/CheryX/kochanowski.js/compare/0.2.6...0.2.8

    • Dodano lepsze wsparcie dla klas #5
    • Zwiększono liczbe testów.
    Source code(tar.gz)
    Source code(zip)
  • 0.2.6(Aug 21, 2022)

    Pełny Changelog: https://github.com/CheryX/kochanowski.js/compare/0.2.5...0.2.6

    • Dodano słowne pierwiastki, liczbe losową oraz zwracanie.
    • Naprawiono błąd z numerowaniem linijek.
    • Dodano wsparcie do objektów.
    • Napisano jakąkolwiek dokumentacje #4 (by @ssz256).
    Source code(tar.gz)
    Source code(zip)
  • 0.2.5(Aug 15, 2022)

    Full Changelog: https://github.com/CheryX/kochanowski.js/commits/0.2.5

    • Removed En*lish math operators e.g. +, -.
    • Now throwing error when using normal math operators.
    • Added custom math operators and some constants. #2
    • Polished config file extension name #1
    • Fixed some spelling errors
    Source code(tar.gz)
    Source code(zip)
Owner
Maciej Musielik
A programmer that has too much free time.
Maciej Musielik
Tries to execute sync/async function, returns a specified default value if the function throws

good-try Tries to execute sync/async function, returns a specified default value if the function throws. Why Why not nice-try with it's 70+ million do

Antonio Stoilkov 14 Dec 8, 2022
Digital Identifier is a secure, decentralized, anonymous and tampered proof way of maintaining and verifying all essential identity-based documents to create a unique digital identity of a person.

Digital Identifier ?? To design and develop a secure, decentralized, anonymous and tampered proof way of maintaining and verifying all essential ident

Mukul Kolpe 4 Dec 17, 2022
Missing Person Finder re-design

Missing Person Finder With ReactJs #Technology Used React Routing with React-routing-dom Redux with Redux Persist API calling with axios Ant design UI

Itp Manish 0 Jul 12, 2022
A first person character controller for the Three.js graphics library

charactercontroller A first person character controller for the Three.js graphics library Demo Installation npm install charactercontroller Usage impo

Malted 10 Aug 17, 2022
A calculation and tracker tool for one-person business operations

?? Taxemu This is the alpha version of Taxemu. A tracker tool for one-person business operations. The live project can be found here. Development Clon

John Raptis 7 Nov 30, 2022
A highly portable first person 3D game playable on Desktop or Web!

rust-game Interfaces (*_interface/) are immediately human-playable versions of the game. They use single_player simulations of the game, which in turn

Gerald Nash 2 Jun 7, 2022
Cookbook Method is the process of learning a programming language by building up a repository of small programs that implement specific programming concepts.

CookBook - Hacktoberfest Find the book you want to read next! PRESENTED BY What is CookBook? A cookbook in the programming context is collection of ti

GDSC-NITH 16 Nov 17, 2022
Write "hello world" in your native language, code "hello world" in your favorite programming language!

Hello World, All languages! ?? ?? Write "hello world" in your native language, code "hello world" in your favorite language! #hacktoberfest2022 How to

Carolina Calixto 6 Dec 13, 2022
A collection of (mostly) technical things every software developer should know about

Join our community for professional Software Developers and get more control over your life and career! Every Programmer Should Know ?? A collection o

MTDV 66.6k Jan 4, 2023