All projects
Class Diagram Compiler — UML checking and code generation
My final year project: a compiler that checks XML class diagrams for syntactic and semantic errors, links multiple diagrams and generates skeleton code.
- JavaScript
- Tailwind CSS
- SQL
- XML
Context
My final year project at FAST-NUCES. Mistakes in a class diagram are cheap to fix early and expensive once they reach code, so the tool checks the design itself.
What we built
- Error detection: processes XML input and reports syntactic and semantic errors.
- Multi-diagram support: manages the associations between several diagrams.
- Code generation: produces the matching skeleton code.
- User history: keeps a record of activity to review later.
The project also has full design documentation, including use case, sequence, activity and architecture diagrams.
Stack notes
A JavaScript application styled with Tailwind CSS, with a SQL database schema.