pcc is a project that attempts to transpile pseudocode to executable Python. The dialect of pseudocode used is that of 'Introduction to Algorithms - 4th Edition' by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, and Clifford Stein.
The project has only been tested with Python 3.12.7, though any Python later than ~3.10 should work.
git clone [email protected]:colmmurphyxyz/pcc.git
python3 -m venv ./venv
source venv/bin/activate
pip install -r requirements.txt
From the root directory of the project...
python3 pcc/pcc.py res/pc_examples/ch02/insertion_sort.pc
The transpiled Python program will be printed to the standard output, and also written to out/out.py
TODO...