Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zhuorantan/pl0
A PL/0 programming language compiler implemented with Python 3 and LLVM
https://github.com/zhuorantan/pl0
compiler llvm llvm-ir pl0 python3
Last synced: 2 days ago
JSON representation
A PL/0 programming language compiler implemented with Python 3 and LLVM
- Host: GitHub
- URL: https://github.com/zhuorantan/pl0
- Owner: zhuorantan
- License: mit
- Created: 2018-05-07T13:58:29.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-20T10:14:54.000Z (over 6 years ago)
- Last Synced: 2024-10-18T05:56:46.193Z (4 months ago)
- Topics: compiler, llvm, llvm-ir, pl0, python3
- Language: Python
- Homepage:
- Size: 14.5 MB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PL/0
### A PL/0 programming language compiler implemented with Python 3 and LLVM# Usage
```shell
python main.py path/to/pl0/source/file
```# Requirements
This program generates LLVM IR code. In order to generate executable binaries, LLVM command line tool and GCC have to be installed.On macOS, LLVM can be installed via
```shell
brew install llvm
```
Since homebrew doesn't symlink LLVM into /usr/local, you have to manually add the path of `llc` to `PATH` environment variable, or provide the path of `llc` by
```shell
python main.py path/to/pl0/source/file -llc /usr/local/opt/llvm/bin/llc
```# [License](LICENSE)