https://github.com/anntnzrb/tsparxser
TypeScript mini lexer+parser implementation using Python's PLY library.
https://github.com/anntnzrb/tsparxser
lexer parser ply python typescript
Last synced: about 1 year ago
JSON representation
TypeScript mini lexer+parser implementation using Python's PLY library.
- Host: GitHub
- URL: https://github.com/anntnzrb/tsparxser
- Owner: anntnzrb
- License: gpl-3.0
- Archived: true
- Created: 2023-06-07T01:54:51.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T01:19:41.000Z (almost 3 years ago)
- Last Synced: 2025-03-10T09:50:11.812Z (over 1 year ago)
- Topics: lexer, parser, ply, python, typescript
- Language: Python
- Homepage:
- Size: 110 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: COPYING
Awesome Lists containing this project
README
# tsparxer
Lexing and Parsing the TypeScript programming language using Python's PLY library.
## Prerequisites
Before you continue, ensure you have met the following requirements:
| Requirement | Version |
| ----------- | ------------------------------------------------------ |
| Python | 3.10+ |
| Poetry | [Latest](https://python-poetry.org/docs/#installation) |
## Installation
1. Clone the repository & `cd` into it:
```sh
git clone https://github.com/anntnzrb/tsparxer.git
cd tsparxer/
```
2. Install dependencies using Poetry:
```sh
poetry install
```
## Running the Application
### Terminal
To run the application via terminal, use the following command:
```sh
poetry run app
```
The will present 2 options, the first for testing the **lexer** and the latter
for testing the **parser**.
### GUI
To run the graphical version of the application , use the following command:
```sh
poetry run gui
```
## Running Tests
To run the tests (lexer + parser), use the following command:
```sh
poetry run test
```
## Authors
| Name | Contact |
| --------------------- | ----------------------------------------------------- |
| Juan Antonio González | [juangonz@espol.edu.ec](mailto:juangonz@espol.edu.ec) |
| Paul Gudiño | [pgudino@espol.edu.ec](mailto:pgudino@espol.edu.ec) |
| Christopher Villa | [cgvilla@espol.edu.ec](mailto:cgvilla@espol.edu.ec) |