bare vocabulary
Factor handbook ยป Vocabulary index


Documentation
Binary Application Record Encoding (BARE)

Metadata
Authors:John Benediktsson


Words

Error classes
ClassSuperclassSlots
cannot-be-void tupletype
duplicate-keys tuplekeys
duplicate-values tuplevalues
invalid-enum tuplevalue
invalid-length tuplelength
invalid-union tuplevalue
not-enough-entries tuple
unknown-type tuplename


Tuple classes
ClassSuperclassSlots
data tuplelength
enum tuplevalues
list tupletype length
map tuplefrom to
optional tupletype
schema tupletypes
struct tuplefields
union tuplemembers


Singleton classes
bool
f32
f64
i16
i32
i64
i8
int
str
u16
u32
u64
u8
uint
void


Parsing words
WordSyntax
SCHEMA:


Generic words
WordStack effect
read-bare( schema -- obj )
write-bare( obj schema -- )


Ordinary words
WordStack effect
<data>( length -- data )
<enum>( values -- enum )
<list>( type length -- list )
<map>( from to -- map )
<optional>( type -- optional )
<schema>( types -- schema )
<struct>( fields -- struct )
<union>( members -- union )
>bare( obj schema -- encoded )
bare>( encoded schema -- obj )
cannot-be-void( type -- * )
define-schema( schema -- )
duplicate-keys( keys -- * )
duplicate-values( values -- * )
invalid-enum( value -- * )
invalid-length( length -- * )
invalid-union( value -- * )
load-schema( path -- schema )
not-enough-entries( -- * )
parse-schema( string -- schema )
unknown-type( name -- * )


Class predicate words
WordStack effect
bool?( object -- ? )
cannot-be-void?( object -- ? )
data?( object -- ? )
duplicate-keys?( object -- ? )
duplicate-values?( object -- ? )
enum?( object -- ? )
f32?( object -- ? )
f64?( object -- ? )
i16?( object -- ? )
i32?( object -- ? )
i64?( object -- ? )
i8?( object -- ? )
int?( object -- ? )
invalid-enum?( object -- ? )
invalid-length?( object -- ? )
invalid-union?( object -- ? )
list?( object -- ? )
map?( object -- ? )
not-enough-entries?( object -- ? )
optional?( object -- ? )
schema?( object -- ? )
str?( object -- ? )
struct?( object -- ? )
u16?( object -- ? )
u32?( object -- ? )
u64?( object -- ? )
u8?( object -- ? )
uint?( object -- ? )
union?( object -- ? )
unknown-type?( object -- ? )
void?( object -- ? )


Files


Metadata files