bhasha-script

Bhasha-Script

Bhasha-Script is a custom LALR compiler and Integrated Development Environment (IDE) designed to let users write programs using Bengali keywords and native Bengali digits. This project was developed as part of the CSE 430 (Compiler Design) coursework.

Key Features

Installation & Setup

  1. Clone the repository:
    git clone https://github.com/yourusername/bhasha-script.git
    cd bhasha-script
    
  2. Install Dependencies: Ensure you have Python installed, then run:
    pip install -r requirements.txt
    
  3. Run the Editor:
    python amar_editor.py
    

Usage Example

Type the following code into the Amar Bangla Editor to see the logic in action:

dhoro x = ১০
dhoro y = ৫
jodi x > y tahole dekhao ১০০ nahole dekhao ০

Expected Output in Console: > 100

Project Structure

Academic Context

This project demonstrates the full front-end pipeline of a compiler:

  1. Lexical Analysis: Converting Unicode strings into distinct tokens.
  2. Syntax Analysis: Using Context-Free Grammar (CFG) to validate statement structures.
  3. Semantic Analysis: Managing a symbol table for variable storage and retrieval during execution.