File diff using the patience diff algorithm: a MoonBit port of Jane Street's patdiff
moonx moonbit-community/patdiff/cmd/patdiff old.txt new.txtmoon install moonbit-community/patdiff/cmd/patdiffmoon build --release_build/native/release/build/cmd/patdiff/patdiff.exe old.txt new.txtlet diff : Bytes = @kernel.patdiff(
prev=@kernel.DiffInput::of_string("old", "Foo bar buzz"),
next=@kernel.DiffInput::of_string("new", "Foo buzz"),
output=Html,
)| Package | Contents |
|---|---|
| patience_diff | The diff algorithm, generic over the element type |
| ansi_text | Parsing and manipulating text with ANSI escape codes |
| kernel | Refinement, moves, rendering and configuration; no I/O |
| sexp | S-expressions, for configuration files |
| sys | Files, standard streams and the terminal, on moonbitlang/async |
| lib | Comparing files and directories, loading configuration |
| cmd/patdiff, cmd/ansi_text | The executables |
moon testmoon build --release && python3 test/cli/run_cram.pymoon build --release --target wasm && python3 test/cli/run_cram.py --target wasmInstall
Download zipFile diff using the patience diff algorithm: a MoonBit port of Jane Street's patdiff