python main.py path/to/pl0/source/file
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