edward

An extensible POSIX-compatible implementation of the ed(1) text editor

git clone https://git.8pit.net/edward.git

 1;;> This library implements the editor commands mandated by the
 2;;> [POSIX.1-2008 ed(1)][posix commands] specification. This is achieved
 3;;> by leveraging the [edward ed cmd][edward ed cmd] abstraction. The
 4;;> executor for all POSIX ed commands is exported and can be reused to
 5;;> implement new commands.
 6;;>
 7;;> [posix commands]: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/ed.html#tag_20_38_13_03
 8;;> [edward ed cmd]: edward.ed.cmd.html
 9
10(define-library (edward.ed.posix)
11  (import (scheme base)
12          (scheme write)
13          (scheme process-context)
14
15          (srfi 1)
16          (srfi 14)
17
18          (posix-regex)
19          (matchable)
20
21          (only (chicken process) system)
22          (only (chicken string) string-split)
23
24          (edward util)
25          (edward parse)
26          (edward replace)
27          (edward ed cmd)
28          (edward ed addr)
29          (edward ed editor))
30
31  (export %exec-edit %exec-quit exec-append exec-change exec-command
32          exec-copy exec-delete exec-edit exec-filename exec-global
33          exec-help exec-insert exec-interactive exec-join
34          exec-line-number exec-list exec-mark exec-move exec-null
35          exec-number exec-print exec-prompt exec-quit exec-read
36          exec-subst exec-undo exec-write)
37
38  (include "posix.scm"))