Skip to content

yalang/yalang.github.io

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation



ي : لغة البرمجة

NOTE: We have changed the name of this project to ya or (ي : لغة البرمجة) (yā: The programming language). The last character. Previously it was called qalblang. You may find some footprint for the same in here. Please let me know at [email protected]. Happy to see your suggestions or any feedback.

Ya (ي) is an open source programming language where you can write python code in arabic language.

It takes the arabic text and convert it into python code and execute it. Which then can be used anywhere. You can code anything which you can code in python.

It is recommended to use IntelliJ IDEA as it support RTL text direction and and it also support .ي extension.

اكتب("اهلا و سهلا يا عالم"

Output:

اهلا و سهلا يا عالم
ع = ٧
لو ع ٪ ٢ == ٠:؛
    اكتب("ع الفردية"ولو ٧ == ٠:؛
    اكتب("هذا صفر"آخراكتب("ع الزوجية"

Output:

ع الزوجية
وظيفة جمع(اولا، ثاني):؛
    كل = اولا + ثاني؛
    إرجع كل؛

اكتب("جمع = "، جمع(٢، ٣))؛

Output:

جمع =  ٥

NOTE: ؛ is optional at the end of line

For more sample code see (https://github.com/yalang/examples)

Prerequisites

  • macOS
  • Python 3

Getting Started

Installation

  • Clone this repo:
git clone https://github.com/yalang/ya.git
cd ya
  • Run install.sh:
./install.sh
  • Add export PATH=$HOME/ya/bin:$PATH to .bash_profile or .bashrc

Running

  • Create a new file with name اهلا.ي and open in any editor.

  • Write this in the file

اكتب("اهلا و سهلا يا عالم"
  • Save it

  • Open a terminal and go to the folder where file is saved

  • Run this command

ي اهلا
  • It will print
اهلا و سهلا يا عالم

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages