finds.dev← search

// the find

hajali-amine/wpf-compiler-interface

★ 7 · C · updated Jun 2022

A basic desktop interface to use a mini-java compiler that we developed.

A university project pairing a Lex/YACC-based Mini Java compiler with a WPF desktop frontend. The compiler handles lexical and syntax analysis with some semantic passes; the WPF app shells out to the parser executable and displays its output. This is student work, not a production tool.

The classic Lex/YACC pipeline is implemented correctly enough to be a working example of compiler front-end construction. Separating the compiler into a standalone executable that the GUI invokes is a reasonable architecture — keeps the C toolchain decoupled from the .NET layer. The repo is clean and small, which makes it easy to trace the full pipeline without wading through boilerplate.

The compiler stops at parsing — there is no code generation that produces runnable output, so 'compiler' is generous. The WPF integration is just a shell wrapper around a .bat file, meaning it is Windows-only and brittle to path issues. Last touched in 2022 with 7 stars, this is clearly homework that was never maintained or extended. Error reporting from the compiler back to the UI almost certainly amounts to raw stdout dumps.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →