A simple file diff module for slope-lang
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
sloum ba0b058c5b
Minor text changes
6 months ago
README.md Minor text changes 6 months ago
main.slo Minor text changes 6 months ago
module.json Working diff module, bare bones 6 months ago

README.md

diff

A simple diff module with one exposed procedure: diff.

Example Usage

(load-mod diff)

; Output diff to stdout, showing all lines (including unchanged ones)
(diff::diff "./myfile.txt" "./myfile.newer.txt")

; Output diff to stdout, showing only changed lines
(diff::diff "./myfile.txt" "./myfile.newer.txt" #f)

; Output diff to stderr, showing all lines
(diff::diff "./myfile.txt" "./myfile.newer.txt" #t stderr)

; Output diff to string-buffer, showing only changes
(define buf (string-make-buf))
(diff::diff "./myfile.txt" "./myfile.newer.txt" #f buf)