-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbulk-docs.factor
26 lines (20 loc) · 1.05 KB
/
bulk-docs.factor
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
USING: help.markup help.syntax ;
IN: bulk
ARTICLE: "BULK" "Binary Uniform Language Kit"
"BULK is a framework to create unambiguous and extensible binary formats without the use of a single central registry." $nl
"Basic reading is implemented." $nl
{ $vocab-link "bulk" } ;
ABOUT: "BULK"
HELP: read-bulk
{ $values { "exp" "A BULK expression" } }
{ $description "Read from the default input stream and return a BULK expression." }
{ $error-description "If an error is encountered in the BULK stream, it raises a "
{ $instance parsing-error } "." } ;
IN: bulk.private
HELP: (read-bulk)
{ $values { "top?" "True if parsing an expression of the abstract yield." }
{ "obj" "The object parsed." }
{ "size" "The size of the object parsed (only in case of a word)." } }
{ $description "This is the dispatch table for BULK marker bytes. It reads the marker byte and then call te appropriate function" }
{ $errors "If " { $snippet "top?" } " is true, reading the marker byte for the end of sequence raises a " { $instance parsing-error } "." }
{ $see-also read-bulk } ;