Skip to content

Latest commit

 

History

History
73 lines (42 loc) · 1.91 KB

README.md

File metadata and controls

73 lines (42 loc) · 1.91 KB

My Own Programming Language

Welcome to my custom programming language, inspired by BASIC and developed using Python. This project includes a Lexer for tokenizing input, an Error Handler for robust debugging, and a Parser to create an Abstract Syntax Tree (AST). The code structure is designed to be readable and maintainable.

Features

  • Lexer: Tokenizes input to facilitate parsing.
  • Error Handler: Provides robust debugging to identify and handle errors effectively.
  • Parser: Creates an Abstract Syntax Tree (AST) for syntactic analysis.
  • Enhanced Code Structure: Ensures readability and maintainability of the codebase.

Getting Started

To get started with this project, follow the instructions below:

Prerequisites

  • Python 3.7 or higher

Installation

Clone the repository:

git clone https://github.com/risav-pyakurel/My-own-programming-Languagee.git
cd My-own-programming-Languagee

Usage

To run the lexer, parser, and interpreter, use the following commands:

python main.py

You can input your custom programming language code in the provided interface. The lexer will tokenize the input, the parser will generate an AST, and the interpreter will execute the code.

Example

Here's an example of how to use the language:

LET A = 10
PRINT A

Contributing

Contributions are welcome! If you have any suggestions or improvements, please create an issue or submit a pull request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a pull request

Contact

If you have any questions, feel free to reach out: