panache-parse(1)
β¨ NAME β¨
panache-parse β parse and display the CST tree for debugging. Hi bestie, this is the panache-parse(1) page from the General Commands Manual, and we're about to make CSTs make sense π
.
π οΈ SYNOPSIS π οΈ
panache parse [--to] [--json] [-h|--help] [-V|--version] [FILE]
π DESCRIPTION π
Okay so you parse a document and it displays its Concrete Syntax Tree (CST) for debugging and understanding how Panache interprets the document structure. Iconic. The CST shows all block and inline elements detected by the parser β every single one, no cap π.
π OPTIONS π
--to <FORMAT>[default:cst] β choose what to print to stdout:cst(default): debug-format CST tree, useful for parser debugging.pandoc-ast: pandoc-native AST text, the same shape produced bypandoc -f markdown -t native. Unsupported constructs emit visibleUnsupported "<KIND>"sentinels rather than being silently dropped.pandoc-json: the same AST encoded as JSON, matchingpandoc -f markdown -t json. UTF-8 round-trips cleanly throughjq/ascii2unisince strings use standard JSON escaping rather than Haskell-show numeric escapes.
Possible values:
cstpandoc-astpandoc-json
--json <PATH>β write the parsed CST to the given JSON file in addition to printing the selected--toformat to stdout. The JSON output is always CST-shaped regardless of--to; it includes node kinds, text ranges, and token text. Slay, but keep that distinction π.-h,--helpβ Print help (see a summary with'-h').-V,--versionβ Print version.[FILE]β path to the input file to parse. If it's not provided, or if-is given, it reads from stdin. Important vibe check: with no arguments at an interactive terminal this is a usage error instead, since there is nothing to read. The parser respects extension flags from the configuration file.
πΈ VERSION πΈ
v3.16.0 β that's the version, bestie, short and sweet π.
π¦ SEE ALSO π¦
panache(1), panache-format(1), panache-lsp(1), panache-lint(1), panache-clean(1), panache-debug(1) β go read the whole squad, iykyk π.
Cute sign-off time π«Ά: the footer source/version says parse 3.16.0, the page title is panache-parse(1), and the VERSION section says v3.16.0. The original footer shows no date, so there's no date to mention β no invented dates here, periodt β¨.
π¦ where this page comes from
- nixpkgs unstable: panache 3.16.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms