Skip to content

risav-pyakurel/My-own-programming-Languagee

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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:


About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages