|
|
|
Show HN: Cdecl-dump - represent C declarations visually
(github.com)
|
|
35 points
by bluetomcat
191 days ago
|
|
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. |
|
P.S. Please add a license for your code.
[1] https://tree-sitter.github.io/
[2] https://github.com/rizinorg/rizin/tree/dev/librz/type/parser
[3] https://github.com/rizinorg/rizin-grammar-c/
[4] https://github.com/tree-sitter/tree-sitter/issues/711