This repository contains the implementation of Primitive Recursive Functions in C++20. The project includes basic functions (Zero, Successor, Projection) and composite operators (Composition, Recursion) with an interactive shell for function execution.
The program provides predefined functions: addition, subtraction, multiplication, power, and predecessor.
- include/- Header files organized in subdirectories- functions/- Core primitive recursive function classes
- interactive/- Interactive menu and function registry
 
- src/- Implementation files- functions/- Function implementations
- interactive/- Menu system implementation
 
- build/- Compiled files
To compile and run the program, follow these steps:
- Ensure you have a C++ compiler installed (g++ or clang with C++20 support).
- Navigate to the project directory.
- Move to the builddirectory:cd build
- Compile the project using CMake:
cmake .. make 
- Run the interactive shell:
./prf 
Once the program is running, you can:
- Type listto see available functions
- Type helpto see available commands
- Type a function name (e.g., add,mult) to execute it
- Type quitto exit
https://github.com/EricRios-commits/PrimitiveRecursiveFunction.git