Skip to content

Latest commit

 

History

History
23 lines (20 loc) · 790 Bytes

README.md

File metadata and controls

23 lines (20 loc) · 790 Bytes

Pseudo-Code Compiler

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.

Supported Python versions

The project has only been tested with Python 3.12.7, though any Python later than ~3.10 should work.

Usage

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

Documentation

TODO...