https://mohammed.ezzedine.me/abjad
Online documentation and an editor for writing and running ABJAD code.
Support for both Arabic and English Languages.
Abjad (in Arabic: أبجد) refers to the alphabets
It can be used for teaching kids, with limited knowledge in English, some concepts about programming.
-
Till now, it supports limitted and basic programming features:
- Declaring variables and constants
- Assigning values to variables
- Do computational jobs using the basic math operators (+, -, * and /)
- Creating functions with or without parameters
- Creating classes and instantiating them
- For and while loops
- If-else statements
- Printing values to a file
- Adding comments to the code
- ABJAD is a dynamically typed language (like JavaScript, Python, etc.)
- ABJAD is an interpreted lanugage (opposite to compiled languages)
- ABJAD programs have
.abjad
file extension
It is similar in syntax to JavaScript, with two basic modifications: the characters language (Arabic), and the text direction (From right to left).
Here is a Hello World example:
أكتب("مرحبا بالعالم!")؛
- The syntax basically resembles the usage of curly braces as in C family languages
- Statements must end with a semicolon
؛
For more details about the syntax, check this wiki page
The grammar of the language is provided here.
A reference to words-tokens mapping is provided here
Instructions for installing and using ABJAD's interpreter are provided in the wiki here
You're going to need an editor that supports Right-To-Left text alignment. You can use Notepad++
MIT License for open-source projects.
CSharpLox by Mohammad Rahhal.