Releases: Shafin098/pakhi-bhasha
Releases · Shafin098/pakhi-bhasha
New gc and better error reporting
Release notes
- Added a new mark-sweep garbage collector
- Added a new built-in-constant _প্ল্যাটফর্ম, this constant will expand to current os name
Possible _প্ল্যাটফর্ম values are
- "linux"
- "macos"
- "ios"
- "freebsd"
- "dragonfly"
- "netbsd"
- "openbsd"
- "solaris"
- "android"
- "windows"
- Added better error reporting. Error now shows line number and module name
- Fixed a bug with return statement in loop
- Lexer now reports lexical analysis error
- Fixed a bug in lexer where \t was causing infinite loop
Added new built in functions and constant
Release notes
- Add support for recursive function call
- Some errors are now more descriptive
- Fixed a bug where module was imported partially
- Fixed a bug where line number in error would be wrong during parsing
- Fixed a bug in _দেখাও statement when printing string
- Fixed some bugs in Pakhi runner
- Added new docs and example program
- Added 17 new built-in functions and 1 new built-in constant
New builtin functions and constants list
- _ডাইরেক্টরি
- _রিড-লাইন()
- _স্ট্রিং(মান)
- _সংখ্যা(মান)
- _লিস্ট-পুশ(লিস্ট, মান)
- _লিস্ট-পুশ(লিস্ট, ইন্ডেক্স, মান)
- _লিস্ট-পপ(লিস্ট)
- _লিস্ট-পপ(লিস্ট, ইন্ডেক্স)
- _লিস্ট-লেন(লিস্ট)
- _এরর("এরর মেসেজ")
- _স্ট্রিং-স্প্লিট(string, split-by)
- _স্ট্রিং-জয়েন(list-of-string, join-by)
- _টাইপ(value)
- _রিড-ফাইল("ফাইল-প্যাথ")
- _রাইট-ফাইল("ফাইল-প্যাথ", "কন্টেন্ট")
- _ডিলিট-ফাইল("ফাইল-প্যাথ", "কন্টেন্ট")
- _নতুন-ডাইরেক্টরি("ডাইরেক্টরি-প্যাথ")
- _রিড-ডাইরেক্টরি("ডাইরেক্টরি-প্যাথ")
- _ডিলিট-ডাইরেক্টরি("ডাইরেক্টরি-প্যাথ")
- _ফাইল-নাকি-ডাইরেক্টরি("প্যাথ")
New module system
Release notes
- Pakhi now includes a module system for modular programming. Split a pakhi program into separate files and import each module with new module import and use syntax.
Module import syntax:মডিউল মডিউল-নাম = "মডিউল-পাথ";
Module use syntax:মডিউল-নাম/মডিউলের-ফাংশন();
Comment with comment block
Release notes
- Added single line or multi-line comment with comment block
# this is a comment in pakhi #
Pakhi runner bug fix
Release notes
- Fixed random newline bug in
Pakhi Runner
output text area - Renamed
Pakhi
output viewer program toPakhi Runner
to avoid confusion
New datatype record added
Release notes
- Record is a hash-table like datatype build into the language
- Multi dimensional Indexing is now possible with both list and record
- Array is now renamed to list
Pakhi runner bug fix
Release notes
- Fixed a bug where Pakhi runner wasn't properly writing user input to pakhi process
New Pakhi runner added and simplified installation process
Release notes
- Pakhi runner included to properly show bangla text. Running program by Pakhi runner is recommended.
- Added new built-in function
_রিড-লাইন()
to read from stdin.
Added built in function for array manipulation
Release notes
- Add new element to end of a list with _লিস্ট-পুশ(লিস্ট, মান)
- Add new element at specific index _লিস্ট-পুশ(লিস্ট, ইন্ডেক্স, মান)
- Remove last element from list with _লিস্ট-পপ(লিস্ট)
- Remove element at specific index with _লিস্ট-পপ(লিস্ট, ২)
New data type added
Release notes
- Added new array data type