panache-parse(1)

NAME
panache-parse - Parse and display the CST tree for debugging

SYNOPSIS
panache parse [--to] [--json] [--verify] [-h|--help] [-V|--version] [FILE]

DESCRIPTION
Parse a document and display its Concrete Syntax Tree (CST) for debugging and understanding how Panache interprets the document structure. The CST shows all block and inline elements detected by the parser.

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 by `pandoc -f markdown -t native`. Unsupported constructs emit visible `Unsupported "<KIND>"` sentinels rather than being silently dropped. - pandoc-json: the same AST encoded as JSON, matching `pandoc -f markdown -t json`. UTF-8 round-trips cleanly through `jq`/`ascii2uni` since strings use standard JSON escaping rather than Haskell-show numeric escapes.
    Possible values:

    •   cst

    •   pandoc-ast

    •   pandoc-json

--json <PATH>
    Write the parsed CST to the given JSON file in addition to printing the selected --to format to stdout. The JSON output is always CST-shaped regardless of --to; it includes node kinds, text ranges, and token text.

--verify
    Run parser losslessness verification (input == parsed CST text). Exits with code 1 when verification fails. Deprecated: prefer `panache debug format --checks losslessness`.

-h, --help
    Print help (see a summary with '-h')

-V, --version
    Print version

[FILE]
    Path to the input file to parse. If not provided, or if `-` is given, reads from stdin. The parser respects extension flags from the configuration file.

VERSION
v2.48.0

SEE ALSO
panache(1), panache-format(1), panache-lsp(1), panache-lint(1), panache-clean(1), panache-debug(1)