Skip to content

islamtunc/mela

Repository files navigation

Bismillahirrahmanirahim

Elhamdulillahirabbulalemin

Esselatu ve selamu ala rasulina Muhammedin ve ala alihi ve sahbihi ecmain

La ilaha illallah, Muhammadur Rasulullah

SuphanAllah, Alhamdulillah, Allahu Akbar

La hawla wa la quwwata illa billah

La ilaha illallah, Muhammadur Rasulullah

Hasbunallahu ve ni'mel vekil

La ilaha illallah, Muhammadur Rasulullah

Mela Programming Language

This project was started to develop a new programming language that runs on assembly, supports OOP, and is written in the Arabic alphabet.

Folders

  • lexer: Tokenizer and lexical analyzer code (Assembly)
  • parser: Syntax analyzer code (Assembly)
  • compiler: Compiler and code that generates assembly output (Assembly)
  • examples: Example .mela files

Features

  • Intermediate-level, assembly-based
  • OOP support
  • Written in the Arabic alphabet
  • File extension: .mela
  • All tools and the compiler are written in assembly language.

Build and Run

To compile a .mela file, assemble the relevant assembly files with an assembler:

; Example (for NASM):
nasm -f elf64 compiler/compiler.asm -o compiler.o
ld compiler.o -o mela_compiler
./mela_compiler examples/ornek.mela

The output will be an assembly (.asm) file. You can convert this file to machine code with a suitable assembler.

Download and Installation

You can always download the latest version of Mela from the following link:

Download Mela (ZIP)

Extract the archive and follow the instructions below for your operating system.

Using the Build Script (Windows/WSL)

If you are on Windows, you can use the provided script to build and run the lexer easily:

cd lexer
build_and_run_lexer.cmd

This script will automatically assemble and link the lexer using WSL. After building, you can run the lexer on a .mela file with:

mela example.mela

Or for Arabic filenames:

mela مثال.ميلا

(You can create a batch file named mela.cmd in the project root to forward the command to WSL, so you can use mela directly in the Windows command prompt.)

For Linux or MacOS, see the instructions in lexer/build_and_run_lexer.cmd or the lexer README.

Windows Installer (.exe)

You can install Mela easily on Windows using the provided installer:

Download Mela Installer (.exe)

How to use the installer:

  1. Download the .exe file from the link above.
  2. Double-click to run the installer and follow the on-screen instructions.
  3. The installer will copy all necessary files, set up your PATH, and create a desktop shortcut for Mela.
  4. After installation, you can use mela from any command prompt or use the desktop shortcut for the interactive shell.

If you want to build the installer yourself:

  • Download and install NSIS.
  • Open NSIS, select "Compile NSI scripts", and load installer.nsi from this project.
  • Click "Compile" to generate the .exe installer.

About

Antolojîya Îslam ê

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors