nowfound

Life & fun · December 8, 2025

Cdecl-dump - represent C declarations visually

A small tool that parses C declarations and outputs a simple visual representation at each stage, as it encounters arrays, pointers or functions. The program uses a table-driven lexer and a hand-written, shift-reduce parser. No external dependencies apart from the standard library.

Cdecl-dump - represent C declarations visually launched on December 8, 2025 with 35 votes, #489 of 11,628 launches that month and more than 90% of that year's launches.

Visit github.com ↗Alternativestop 4% of December 2025

In plain words

Cdecl-dump is a tool that parses C declarations and displays a visual representation showing how arrays, pointers, and functions are structured at each parsing stage. It uses a table-driven lexer and hand-written shift-reduce parser to break down complex C syntax into understandable diagrams. The tool requires only the standard library with no external dependencies, making it lightweight and easy to integrate.

written from the facts on this page · September 2026

From the sources

Dump complex C declarations visually. Contribute to bbu/cdecl-dump development by creating an account on GitHub.

./cdecl-dump "int a" ./cdecl-dump "void f(int a)" ./cdecl-dump "unsigned char *const *arr[20][30]" ./cdecl-dump "int (*const fp[20])(void)" Building ./build.sh produces a debug build with additional tracing of the parsing stages DEBUG=0 ./build.sh produces an optimised executable Bugs The program doesn't do strict validation of the declarator in certain cases. Unlike the rules of C, it allows functions to return arrays and arrays to have functions as their elements. Only built-in types are supported. For example, size_t or uint64_t will not be accepted. Screenshot Each printed stage mirrors the eventual use of the declared variable – it is a sample sub-expression of the intended use. We…from github.com

Does a similar job

all alternatives →
  • A work-in-progress C compiler from scratch2021 · github.com · ▲159

    Programming language that compiles into a x86 ELF executable. - riicchhaarrd/ocean

  • GI
    Going into freshman year, figured I should build an interpreter2023 · ▲138

    Hi all! I'm going into my freshman year, and figured that the best way to prepare for the intro to programming Racket course would be to implement my own garbage-collected, dynamically typed, functional programming language in C ;) Anyways... here's the repo: https://github.com/liam-ilan/crumb I started learning C over the summer, so I still have a whole lot to learn... Any feedback would be greatly appreciated! :D

  • A simple garbage collector for C2019 · github.com · ▲192

    Simple, zero-dependency garbage collection for C. Contribute to mkirchner/gc development by creating an account on GitHub.

  • Lisp with copying GC in 537 lines of C (plus Lisp 1.5 on top)2018 · github.com · ▲152

    Moved to Forgejo! Contribute to krig/LISP development by creating an account on GitHub.

  • A hash array-mapped trie implementation in C2023 · github.com · ▲171

    Long-simmering side project that is finally ready to see the light. HAMTs are a cool persistent data structure and implementing one has been a lot of fun. Beyond the code, there is likely some value in the extensive and largely complete implementation docs; basic benchmarks are linked in the README, too. Kind of aiming to be "the libavl for HAMTs". That is obviously a high and aspirational bar but a distinct possibility if it stirs up a little interest and/or contribution. Anyways, it's time for this to go out, collect feedback and maybe even some use outside of toy projects. Let me…

  • A C++ dump func. that can print multi-D vectors, maps, tuples, and all2023 · github.com · ▲82

    A C++ library for debugging purposes that can print any variable, even user-defined types. - philip82148/cpp-dump

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, December 2025

the whole month →
  • GP

    Life & fun · Dec 2025 · dosaygo-studio.github.io

  • Hi everyone! My name's Luke and I made the original Jmail here alongside Riley Walz. We had a ton of friends collaborate on building out more of the app suite last night in lieue of DOJ's "Epstein files" release. Please AMA!

    Life & fun · Dec 2025 · jmail.world

  • Design and ship studio-grade landing pages with AI

    AI · Dec 2025 · loki.build

  • AI turns your health goals into a 7-day menu & grocery list

    AI · Dec 2025 · planeatai.com

  • Community, All the HN belong to you. This is an archive of hacker news that fits in your browser. When I made HN Made of Primes I realized I could probably do this offline sqlite/wasm thing with the whole GBs of archive. The whole dataset. So I tried it, and this is it. Have Hacker News on your device. Go to this repo (https://github.com/DOSAYGO-STUDIO/HackerBook): you can download it. Big Query -> ETL -> npx serve docs - that's it. 20 years of HN arguments and beauty, can be yours forever. So they'll never die. Ever. It's the unkillable static archive of HN and it's…

    Dev tools · Dec 2025 · hackerbook.dosaygo.com

  • AI video studio for viral social clips

    AI · Dec 2025 · cybercut.ai