https://github.com/isaacvando/minipythonparser
Haskell parser for a subset of Python
https://github.com/isaacvando/minipythonparser
haskell parser python
Last synced: 2 months ago
JSON representation
Haskell parser for a subset of Python
- Host: GitHub
- URL: https://github.com/isaacvando/minipythonparser
- Owner: isaacvando
- License: bsd-3-clause
- Created: 2022-11-03T19:04:18.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-11-30T19:33:35.000Z (over 2 years ago)
- Last Synced: 2025-02-24T03:55:32.727Z (2 months ago)
- Topics: haskell, parser, python
- Language: Haskell
- Homepage:
- Size: 38.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# MiniPythonParser
This is a project for Mizzou Principles of Programming Languages Fall 2022 that parses a subset of Python.
## Instructions
To use this project you must have [stack](https://docs.haskellstack.org/en/stable/install_and_upgrade/) installed.Build the project with `stack build` and run the parser with `stack run < input.py`.
If parsing is successful, this command will generate a parse tree at `parseTree/tree.tex`. To view it as a `.pdf` you can use a compiler like `latexmk` or paste it into [overleaf.com](https://overleaf.com). Each direct child of the start symbol is drawn on its own page to allow for a complete representation of large portions of code without sacrificing readability.
To run the test suite, do `stack test`.
## Demo
View my demo video [here](https://youtu.be/S37bwAOr3hk)