uctool-ai-demo-1747603570803.mp4
A CLI tool to unify and streamline the execution of compiler stages (Flex, Bison, LLVM) with optional AI-powered explanations for each stage.
Project under active development.
- Unified execution of compiler phases via CLI
- Modular: calls existing tools (not re-implementing them)
- AI-powered help: uses Gemini LLM to explain compilation stages
Run this command to install all required build tools and libraries:
sudo apt-get update && sudo apt-get install -y flex bison build-essential cmake libtool autoconf automake libjsoncpp-devgit clone https://github.com/iamDyeus/UCTool.git
cd UCTool
makeCreate a .env file in the project root (or edit the existing one) and add your Gemini API key:
GEMINI_API_KEY=your_actual_gemini_api_key_here
Run the tool with:
./out/uctool <filename> [--lexical] [--parse] [--help]--lexical: Run lexical analysis (Flex)--parse: Run syntax analysis (Bison)--help: Get an AI-powered explanation for the last stage (must be the last argument)
Example:
./out/uctool example.l --lexical --helpsrc/cli/: CLI entry pointsrc/executors/: Compiler phase runners (Flex, Bison, etc.)src/ai/: AI explanation system (Gemini integration)tests/: Unit testsdocs/: Documentation
MIT License