Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Shafin098 committed Jan 6, 2021
1 parent 521aca8 commit 3fce158
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Introduction
Pakhi is a dynamically typed, general purpose programming language with bangla script written in rust.
Pakhi is a dynamically typed, general purpose programming language with Bangla alphabet written in rust.
## Language basics
#### PrimitiveTypes
- __সংখ্যা_
Expand Down Expand Up @@ -69,6 +69,26 @@ _দেখাও "ফলাফল = ";
নাম স = ৪২;
জোড়(স);
```
#### Importing modules
Every pakhi source file is a module. Module can be imported with realtive path or absolute path.<br>
Module import syntax: ```মডিউল মডিউল-নাম = "মডিউল-পাথ";```<br>
Module use syntax: ```মডিউল-নাম/মডিউলের-ফাংশন();```
```
# এটা হচ্ছে রুট মডিউল ফাইল: main.pakhi #
মডিউল ম্যাথ = "math.pakhi";
নাম বাহু = ৩;
নাম ক্ষেত্রফল = ম্যাথ/বর্গ(বাহু);
দেখাও ক্ষেত্রফল;
```
```
#
এটা হচ্ছে ম্যাথ মডিউল ফাইল: math.pakhi
রুট মডিউল এই ফাইল এর বর্গ ফাংশনকে ইম্পোর্ট করেছে।
#
ফাং বর্গ(সংখ্যা) {
ফেরত সংখ্যা * সংখ্যা;
} ফেরত;
```
#### Comment block
```
# এক লাইন কমেন্ট #
Expand Down Expand Up @@ -124,25 +144,7 @@ _লিস্ট-পপ(লিস্ট);
_লিস্ট-পপ(লিস্ট, ১);
দেখাও লিস্ট;
```
#### Importing modules
Every pakhi source file is a module. Module can be imported with realtive path or absolute path.
Module import syntax: ```মডিউল মডিউল-নাম = "মডিউল-পাথ";```
```
# এইটা হচ্ছে রুট মডিউল ফাইল #
মডিউল ম্যাথ = "math.pakhi";
নাম বাহু = ৩;
নাম ক্ষেত্রফল = ম্যাথ/বর্গ(বাহু);
দেখাও ক্ষেত্রফল;
```
```
#
এইটা হচ্ছে ম্যাথ মডিউল ফাইল।
রুট মডিউল এই ফাইল এর বর্গ ফাংশনকে ইম্পোর্ট করেছে।
#
ফাং বর্গ(সংখ্যা) {
ফেরত সংখ্যা * সংখ্যা;
} ফেরত;
```

## How to get pakhi on my computer?
* Download only [pakhi-setup.exe](https://github.com/Shafin098/pakhi-bhasha/releases) from Assets
* Complete setup
Expand Down

0 comments on commit 3fce158

Please sign in to comment.