Skip to content

colmmurphyxyz/pcc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published