Skip to content

simple persian programming language written in python

Notifications You must be signed in to change notification settings

Bardia-Barekati/PersianProgrammingLanguage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Persian Programming Language

a simple persian programming language written in python

instructions

To interpret run this command on console:

python3 interpreter.py <file adress>

Warning : File should be have .fd format For example:

python3 interpreter.py examples/helloworld.fd

If you do not have file , You can programming live with Terminal:

python3 interpreter.py

Examples

hello world

"سلام، دنیا!"

if else

اگر 12 برابر 10 + 2 باشد آنگاه "ده با دو میشود دوازده" وگرنه "ده با دو نمیشود دوازده"

user input

عدد = عددگیر
نام = ورودی

comments

# این یک کامنت است
# کامنت ها برنامه را تغییر نمیدهند

divisor

اگر 5 شمارنده 10 باشد آنگاه "درسته" وگرنه "غلطه"

functions

زوج_فرد یعنی اگر 2 شمارنده عدد باشد آنگاه "زوج" وگرنه "فرد"

عدد = 15
زوج_فرد را اجرا کن

operators

اول = 10
دوم = 2

جمع = اول + دوم
تفریق = اول - دوم
ضرب = اول * دوم
تقسیم = اول / دوم

This Interpreter Made Using SLY

About

simple persian programming language written in python

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages