Multi-phase SQL compiler with lexer, parser, semantic analyzer, and web-based visualization — built in C++.
A complete SQL compilation pipeline that parses, validates, and analyzes SQL statements — with a web interface for stepping through each phase.
Compilation Phases:
- Lexer — tokenizes SQL into keywords, identifiers, literals, operators
- Parser — builds an Abstract Syntax Tree from token streams
- Semantic Analyzer — type checking, scope resolution, SQL validity
- Web Visualizer — interactive UI to step through each phase
SQL Input → Lexer (Token Stream) → Parser (AST) → Semantic Analyzer (Validated AST)
→ Web Visualizer
| Component | Technology |
|---|---|
| Compiler Core | C++17, Makefile |
| Web UI | HTML/CSS/JavaScript |
| Container | Docker |
| CI/CD | GitHub Actions |
I designed the 3-phase compilation pipeline, defined the token categories and grammar rules, and planned the AST node hierarchy. Code generation was accelerated using AI tools; compiler design and testing are mine.
git clone https://github.com/AdityaPandey-DEV/Mini-Sql-Compiler.git && cd Mini-Sql-Compiler make build && ./mini-sql-compiler # Or with Docker: docker build -t mini-sql . && docker run -p 8080:8080 mini-sql
Architected & built by Aditya Pandey — AI-augmented development