بيان — لغة البرمجة العربية
بيان هي لغة برمجة عربية تُعرض فيها الشيفرة كخطٍّ عربيّ جميل. تجمع بين جمال الخط العربي وقوة البرمجة
في تجربة فريدة. الشيفرة حقيقية وقابلة للتنفيذ — اكتب برامجك بالعربية وشاهدها تتحول إلى لوحات خطّية
بإطارات مستوحاة من امتداد الكشيدة في الخط العربي. بيان لغة مكدّسية تسلسلية (مثل Forth) حيث يتدفق
التنفيذ من اليمين إلى اليسار تماماً كالقراءة العربية.
Bayan is an Arabic calligraphic programming language where code is rendered as beautiful Arabic calligraphy.
It combines the beauty of Arabic script with the power of programming. Code is real and executable —
write programs in Arabic and watch them transform into calligraphic art with scope frames inspired by
kashida elongation. Bayan is a stack-based, concatenative language (like Forth) where execution flows
right-to-left, matching Arabic reading order.
الكلمات المفتاحية — Keywords
| كتب | print — طباعة |
| جمع | add — جمع |
| طرح | subtract — طرح |
| ضرب | multiply — ضرب |
| قسم | divide — قسمة |
| نسخ | duplicate — نسخ |
| دالة | function — تعريف دالة |
| إذا | if — شرط |
| كرر | loop — تكرار |
| وإلا | else — وإلا |
أمثلة — Examples
سلام — Hello World
"مرحباً بالعالم" كتب
حساب — Arithmetic
# جمع عددين
٣ ٥ جمع كتب
# الناتج: ٨
دالة — Function Definition
# تعريف دالة لحساب المربع
دالة مربع {
نسخ ضرب
}
٧ مربع كتب
# الناتج: ٤٩
فيبوناتشي — Fibonacci
# متتالية فيبوناتشي
٠ ١
١٠ كرر {
فوق جمع
نسخ كتب
}
bayan.ink —
Enable JavaScript to use the interactive editor, visual debugger, and calligraphic code renderer.