---
name: "topformflat"
section: "1"
platform: "linux"
package: "delta"
version: "2006.08.03-13"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/topformflat"
---

# topformflat(1)

flattens code with balanced delimiters

## NAME

topformflat - flattens code with balanced delimiters

## SYNOPSIS

**topformflat** \[*threshold*\]

## DESCRIPTION

**topformflat** is a utility flattens code written in a language with balanced delimiters (such as C), so that all nesting below a specified depth is one one line.

The *threshold* (default: 0) specifies at what nesting level of braces will line breaks be allowed (or inserted). By starting with 0, you get all top-level forms, one per line (roughly). Increasing the threshold leads to finer-grained structure on each line. The intent is to use the Delta minimizer on each level of granularity.

## SEE ALSO

[**singledelta**(1)](/singledelta/1.md), [**multidelta**(1)](/multidelta/1.md)
