A Python tool that tokenizes C++ code into keywords, identifiers, operators, and more. Includes a GUI.
git clone https://github.com/yourusername/cpp-lexer.git
cd cpp-lexer
python src/lexergui.py # GUI version
python src/lexer.py input.cpp # CLI version
-
Detects 15+ token types (keywords, literals, comments, etc.)
-
Tracks line numbers
-
GUI (Tkinter) and CLI support
- Check Test Files/ for examples (test1.cpp, test2.cpp, test3.cpp).