#statement #body #return #syntax #won-t #non #gnu

app return_crusher

A shitty tool to crush a function body into (technically) one return statement using tree-sitter. Won't work for non GNU C syntax or loop with exits or returns.

2 releases

new 0.1.4 Mar 9, 2025
0.1.3 Mar 9, 2025
0.1.2 Mar 9, 2025
0.1.1 Mar 9, 2025
0.1.0 Mar 8, 2025

#5 in #non

Download history 55/week @ 2025-03-03

55 downloads per month

LGPL-3.0

305KB
6.5K SLoC

C 5.5K SLoC // 0.0% comments Rust 1K SLoC // 0.0% comments

Return Crusher

A shitty tool to crush a function body into (technically) one return statement using tree-sitter. Won't work for non GNU C syntax or some loops with exits or returns.

Dependencies

~8MB
~198K SLoC