diff options
Diffstat (limited to 'module')
| -rw-r--r-- | module/complete.m | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/module/complete.m b/module/complete.m new file mode 100644 index 00000000..82495ef9 --- /dev/null +++ b/module/complete.m @@ -0,0 +1,15 @@ +Complete: module +{ + PATH: con "/dis/lib/complete.dis"; + + Completion: adt { + advance: int; # whether forward progress has been made + complete: int; # whether the completion now represents a file or directory + str: string; # string to advance, suffixed " " (file) or "/" (directory) + nmatch: int; # number of files that matched + filename: array of string; # their names + }; + + init: fn(); + complete: fn(dir, s: string): (ref Completion, string); +}; |
