3 ms·
The documentation says: > Difftastic output is intended for human consumption Why not separate the human-consumption part and the underlying parsing part? Or
by einpoklum 5y ago
The documentation says:
> Difftastic output is intended for human consumption
Why not separate the human-consumption part and the underlying parsing part? Or at least provide both in the same utility?
- Wilfred 5y agoThe underlying parser is just tree-sitter, which is a reusable (and excellent) parsing library. Difftastic then converts the tree-sitter parse tree to a simpler s-expression style format (see https://difftastic.wilfred.me.uk/parsing.html#simplified-syntax https://difftastic.wilfred.me.uk/parsing.html#simplified-syn...), and computes differences on that. I'm just trying to clarify that I'm not generating conventional 'unified diff' patches, so I can provide a nicer interface (e.g. line numbers).