Hi Tuur,

On Mon, Feb 03, 2025 at 09:46:37AM +0000, JohnyTheCarrot via Gcc wrote:
> I'm in the process of writing my own C compiler for educational purposes.
> To this end, I have decided to integrate into my compiler my own C++
> port ( https://github.com/johnythecarrot/mjolnir ) of the Rust crate
> Ariadne ( https://github.com/zesterer/ariadne ) which provides nice,
> fancy and readable diagnostics for use in compilers and the
> like. See the first link for an idea of how my library outputs
> diagnostics.

Looks nice. Note that the current diagnostics library GCC uses is
described here: https://gcc.gnu.org/wiki/libgdiagnostics
https://gcc.gnu.org/cgit/gcc/tree/gcc/libgdiagnostics.h
https://gcc.gnu.org/onlinedocs/libgdiagnostics/

It already does have some "fancy reporting" features. You might want
to look at how these code bases could be combined.

Cheers,

Mark

Reply via email to