Skip to content
/ PL0 Public

A PL/0 programming language compiler implemented with Python 3 and LLVM

License

Notifications You must be signed in to change notification settings

zhuorantan/PL0

Repository files navigation

PL/0

A PL/0 programming language compiler implemented with Python 3 and LLVM

Usage

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

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

python main.py path/to/pl0/source/file -llc /usr/local/opt/llvm/bin/llc

About

A PL/0 programming language compiler implemented with Python 3 and LLVM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages