This Python script assists in explaining code by generating pseudo code and providing descriptions for classes, methods, and assembly instructions. It integrates with the OpenAI API for natural language processing.
- Explain Classes: Explains all classes and their methods in the current document by generating pseudo code.
- Explain Pseudo Procedures: Explains the current procedure (method) by generating pseudo code.
- Explain ASM Procedures: Explains assembly instructions for the current procedure by generating assembly code.
- User Interaction: Provides a menu for selecting the type of explanation desired.
- OpenAI Integration: Utilizes the OpenAI API to generate natural language descriptions for code components.
- Copy the
HopperGPT.py
script to your Hopper Disassembler Script Editor. - Replace
'OPENAI_API_KEY'
with your OpenAI API key. - Customize ignored class prefixes and label names as needed.
- Run the script
- Contributions are welcome! Fork the repository, make your changes, and submit a pull request.
- For major changes, please open an issue first to discuss potential modifications.
This project is licensed under the MIT License - see the LICENSE
file for details.