Skip to content

Commit

Permalink
New info added to README
Browse files Browse the repository at this point in the history
  • Loading branch information
Shafin098 committed Oct 11, 2020
1 parent 9fbea94 commit 77a6708
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
.vscode
target
ptest.txt
test.txt
test.txt
release_template
39 changes: 22 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
## Introduction
Pakhi is a dynamically typed, general purpose programming language with bangla script written in rust.
## Language basics
#### Data Types
- __সংখ্যা
- __বুলিয়ান
- __স্ট্রিং
- __লিস্ট
- __ফাং
- __শূন্য
#### PrimitiveTypes
- _সংখ্যা_
- _বুলিয়ান_
- _স্ট্রিং_
- _লিস্ট_
- _ফাং_
- _শূন্য_
#### Variable declaration
```
নাম মাস = ১;
Expand All @@ -26,14 +26,18 @@ Pakhi is a dynamically typed, general purpose programming language with bangla s
```
#### Loop statement
```
নাম কাউন্টার = ১;
নাম সংখ্যা = [১, ২, ৩, ৪, ৫];
নাম ইন্ডেক্স = ১;
নাম যোগফল = ০;
লুপ {
যদি কাউন্টার > ১০০ {
থামাও;
}
দেখাও কাউন্টার;
কাউন্টার = কাউন্টার + ১;
যদি কাউন্টার > {
থামাও;
}
যোগফল = যোগফল + সংখ্যা[ইন্ডেক্স];
ইন্ডেক্স = ইন্ডেক্স + ১;
} আবার;
_দেখাও "ফলাফল = ";
দেখাও যোগফল;
```
#### Function declaration and function call
```
Expand All @@ -49,7 +53,8 @@ Pakhi is a dynamically typed, general purpose programming language with bangla s
জোড়(স);
```
## How to get pakhi on my computer?
* Get pre compiled binary from [pakhi.exe](https://github.com/Shafin098/pakhi-bhasha/releases) Note: Download only pakhi.exe from Assets menu
* Add pakhi as your Path environment variable
* Write a pakhi program (Use example from above).
* Run your program (extension should be .pakhi) with `pakhi source_file_name.pakhi` command
* Get rar file from [pakhi-v0.2-alpha](https://github.com/Shafin098/pakhi-bhasha/releases)
* Add pakhi-v0.2-alpha/bin to your Path environment variable
* Open cmd and type `pakhi`. If no error shows pakhi was added to your path variable.
* Write a pakhi program (Use any example from above).
* Run your program (extension should be .pakhi) with `pakhi source_file_name.pakhi` command (Note: use unicode supported command processor (not cmd or powershell), windows terminal or terminal in vs-code can be used)

0 comments on commit 77a6708

Please sign in to comment.