Skip to content

bauripalash/pankti

Repository files navigation

Pankti Programming Language

The Pankti Programming Language

Introduction

Pankti is a dynamically typed programming language for programming in Bengali. Pankti lets you program in Bengali, English, and also Bengali words in English letters. Pankti is easy to learn yet aims to be a powerful language similar to other popular languages, such as Python or JavaScript. The syntax is designed in such a way that it feels familiar to how Bengali is spoken in daily life, yet it keeps resemblance to common programming syntax.

পরিচিতি

পঙক্তি হল একটি প্রোগ্রামিং ভাষা যা দিয়ে বাংলা, ইংরেজি তে কম্পিউটার প্রোগ্রাম তৈরি করা যায়। পঙক্তি শেখা খুব সহজ হলেও এটি অন্যান্য প্রচলিত প্রোগ্রামিং ভাষার যেমন পাইথন, জাভাস্ক্রিপ্টের মতই শক্তিশালী। এটি এমন ভাবে তৈরি করা হয়েছে যাতে সাধারণ জীবনে ব্যবহৃত বাচনভঙ্গির সাথে সাদৃশ্যতা বজায় থাকে সাথে সাথে অন্যান্য প্রোগ্রামিং ভাষাতে ব্যবহৃত রীতির সাথেও সাদৃশ্যতা বজায় রাখে।

Why

My native language, or mother tongue as they say, is Bengali. To date, there have been multiple attempts to build Bengali Programming Languages. Most of them never crossed the boundaries of being just a toy or an educational tool. But I wanted to do something different, I wanted to build something much more than an educational toy, I wanted to build a powerful yet easy to learn programming, thus Pankti was born. While we have computer-related courses in High Schools, they are limited to only the final two classes of High Schools in most cases. But National Education Policy 2020 aims to introduce coding way earlier, but a sudden shift from learn basic grammar of English to jumping to an English-only environment can be challenging, thus learning the basics of programming in their native language can make the shift smoother.

Language Features

Data Types:

Numbers/সংখ্যা:

ধরি উদাহরণ = ১০০
উদাহরণ = ১২৩৪৫67890
উদাহরণ = 3.14

Strings/কথা:

ধরি উদাহরণ = "আমার নাম পলাশ বাউরি"
উদাহরণ = "পঙক্তি প্রোগ্রামিং ভাষা"
উদাহরণ = "Hello World"

Booleans/বুলিয়ান:

ধরি উদাহরণ = সত্যি
উদাহরণ = মিথ্যা

Nil(Null)/নিল

ধরি উদাহরণ = নিল

HashTables/ছক:

ধরি উদাহরণ = {
    "নাম" : "পলাশ",
    "পদবী" : "বাউরি",
    "সময়" : ১১.১১
}

Array/তালিকা:

ধরি উদাহরণ = ["পলাশ", "বাউরি", ১, ২, ৩, সত্যি]

Variables/চলরাশি:

ধরি নাম = "পলাশ"
ধরি পুরোনাম = নাম + " বাউরি"
ধরি মাস = "বৈশাখ"
ধরি সাল = ২০২৬

Functions/কাজ:

কাজ ঘুমানো(নায়ক)
    দেখাও(নায়ক + " এখন ঘুমোচ্ছে!")
শেষ
ঘুমানো("পলাশ")

If...Else/যদি...তাহলে...নাহলে

ধরি বয়স = ১০০
যদি বয়স >= ১৮ তাহলে
    দেখাও("সাবালক")
নাহলে
    দেখাও("নাবালক")
শেষ

While...Do/যতক্ষণ...করো

ধরি ক = ০
যতক্ষণ ক < ১০ করো
    দেখাও(ক)
    ক = ক + ১
শেষ

Comments/মন্তব্য

// এটি একটি মন্তব্য 

Download

Documentation

Project Status

Pre-alpha. Under heavy development

LICENSE

MPL v2

Note: Buno the Heron, the mascot is created by me, Palash Bauri, and is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International

Special Thanks:

Thorsten Ball for writing these amazing books, "Writing An Interpreter In Go" and "Writing A Compiler In Go", and Robert Nystrom for writing his awesome book, "Crafting Interpreters."

About

Pankti Programming Language, A Practical Bengali Programming Language

Topics

Resources

License

Stars

Watchers

Forks

Contributors