Interactive GCC is a read-eval-print loop (REPL) for C/C++. It works by manipulating a base source file with user commands, compiles the source after each modification using g++, then executes the resulting binary and collects its stdout & stderr.
- Language: Python 3.11
- Build System: setuptools (via pyproject.toml)
- Package Manager: pip
- System Dependency: gcc/g++ (C++ compiler)
- Entry Point:
igcccommand (defined inigcc/run.py:repl)
igcc/- Main packagerun.py- REPL loop and Runner classutils.py- Utility functions (arg parsing, compiler command building)assets/- Static assetsboilerplate.h- Default C++ header included in all compilationsconfig.yaml- Compiler and prompt configuration
tests/- Test scriptspyproject.toml- Project metadata and dependenciesMakefile- Development tasks (lint, format, test)
- PyYAML - Config file parsing
- rich - Terminal output formatting
- jinja2 - Source code templating
- g++ - C++ compiler (system dependency)
The igcc command starts the interactive C/C++ REPL in the console.
- 2026-02-24: Added
.ndot command to toggle line numbers for.land.Llistings - 2026-02-22: Initial Replit setup - installed Python 3.11, gcc, and project dependencies