XerckM / Python-Lexer-and-Parser

Custom lexer and parser designed to interpret a simplified programming language written in Python.
1 stars 0 forks source link

Python Lexer and Parser

Welcome to the Python Lexer and Parser repository! This project is dedicated to creating a lexer and parser for a mini-language using Python, without relying on external libraries like 're'.

Overview

This repository contains a custom lexer and parser designed to interpret a simplified programming language. The project is implemented in Python 3.10, leveraging the match case feature. It's an excellent resource for learning about lexical analysis and parsing in compiler design.

Features

Installation and Usage

  1. Clone the repository to your local machine.
  2. Ensure you have Python 3.10 installed.
  3. Navigate to the 'Python Mini-Language' directory.
  4. Run main.py to execute the lexer and parser on the provided examples.

Contributing

Contributions to the Python Lexer and Parser are welcome! Feel free to fork the repository, make changes, and submit pull requests. If you have ideas for new features or improvements, don't hesitate to open an issue.

License

This project is licensed under the MIT License - see the LICENSE file for details.