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.
- 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.
To get started with this project, follow the instructions below:
- Python 3.7 or higher
Clone the repository:
git clone https://github.com/risav-pyakurel/My-own-programming-Languagee.git
cd My-own-programming-Languagee
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.
Here's an example of how to use the language:
LET A = 10
PRINT A
Contributions are welcome! If you have any suggestions or improvements, please create an issue or submit a pull request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature
) - Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a pull request
If you have any questions, feel free to reach out: