Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/adipol1359/pl-js
Normal programming language, but keywords are in Polish.
https://github.com/adipol1359/pl-js
Last synced: 2 days ago
JSON representation
Normal programming language, but keywords are in Polish.
- Host: GitHub
- URL: https://github.com/adipol1359/pl-js
- Owner: AdiPol1359
- Created: 2022-03-02T20:30:36.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-03-02T20:39:17.000Z (almost 3 years ago)
- Last Synced: 2024-12-02T12:49:15.597Z (20 days ago)
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/pl-js
- Size: 6.84 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# PolishJS
Normal programming language, but keywords are **in Polish**.## About
Simple JavaScript preprocessor written in TypeScript, containing **polish keywords**.## Install
```bash
npm i -g pl-js
```
**OR**
You can try this language on [sandbox](#)!## How to use
Your file must have **.pjs** extension!If you want to compile file into JavaScript, run:
```bash
pl-js [file_name].pjs
```If you want to run code without compiling, run:
```bash
pl-js [file_name].pjs --nocompile
```## Example
```
zmienna a = 'moja zmienna';
stala b = 'moja stala zmienna';funkcja dodaj(a, b) {
zwroc a + b;
}stala wynik = dodaj(10, 2);
jezeli (wynik > 10) {
wyswietl('wynik jest wiekszy od 10!');
} w_innym_przypadku {
wyswietl('wynik nie jest wiekszy od 10!');
}zmienna i = 0;
dopoki(prawda) {
jezeli(i++ > 10) {
zlam;
}
wyswietl('petla while!');
}przelacz (5) {
przypadek 1:
wyswietl('1');
zlam;
domyslnie:
wyswietl('?');
}
```## Keywords table
| keyword | replace |
| :-: | :-: |
| stala | const |
| zmienna | let |
| prawda | true |
| falsz | false |
| funkcja | function |
| zwroc | return |
| jezeli | if |
| w_innym_przypadku | else |
| przelacz | switch |
| przypadek | case |
| domyslnie | default |
| zlam | break |
| kontynuuj | continue |
| petla | for |
| dopoki | while |
| rob | do |
| sprobuj | try |
| zlap | catch |
| ostatecznie | finally |
| zero | null |
| nieokreslony | undefined |
| klasa | class |
| usun | delete |
| nowy | new |
| ten | this |## Functions table
| function | mean |
| :-: | :-: |
| wyswietl() | console.log() |## License
MIT