]> gitweb.factorcode.org Git - factor.git/blob - basis/delegate/protocols/protocols.factor
Fix permission bits
[factor.git] / basis / delegate / protocols / protocols.factor
1 ! Copyright (C) 2007 Daniel Ehrenberg
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: delegate sequences.private sequences assocs
4 prettyprint.sections io definitions kernel continuations
5 listener ;
6 IN: delegate.protocols
7
8 PROTOCOL: sequence-protocol
9     clone clone-like like new-sequence new-resizable nth
10     nth-unsafe set-nth set-nth-unsafe length set-length
11     lengthen ;
12
13 PROTOCOL: assoc-protocol
14     at* assoc-size >alist set-at assoc-clone-like
15     delete-at clear-assoc new-assoc assoc-like ;
16
17 PROTOCOL: input-stream-protocol
18     stream-read1 stream-read stream-read-partial stream-readln
19     stream-read-until stream-read-quot ;
20
21 PROTOCOL: output-stream-protocol
22     stream-flush stream-write1 stream-write stream-format
23     stream-nl make-span-stream make-block-stream
24     make-cell-stream stream-write-table ;
25
26 PROTOCOL: definition-protocol
27     where set-where forget uses
28     synopsis* definer definition ;