r/C_Programming•
bluetomcat

Cdecl-dump: dump complex C declarations visually

I wrote this tool to decipher C declarations in a visual manner. It builds a tree out of the declarator, and traverses it in stages, presenting each thing - array, pointer or function with a basic visual representation.

The program uses a table-driven lexer and a hand-written shift-reduce parser. No dependencies apart from the standard library.

I hope you find it useful.

Posted Dec 7, 2025, 11:48 PM UTC

10
Loading comments…