variants vocabulary
Factor handbook ยป Vocabulary index


Documentation
Algebraic data types

Metadata
Authors:Joe Groff


Words

Predicate classes
ClassSuperclass
variant-class mixin-class


Parsing words
WordSyntax
VARIANT-MEMBER:
VARIANT: VARIANT: class-name singleton singleton tuple: { slot slot slot ... } . . . ;


Generic words
WordStack effect
(match-branch)( class quot -- class quot' )


Macro words
WordStack effect
match( branches -- quot )
unboa( class -- quot )


Ordinary words
WordStack effect
?class( object -- class )
define-tuple-class-and-boa-word( class superclass slots -- )
define-variant-class( class -- )
define-variant-class-member( class member -- )
define-variant-class-members( class members -- )
define-variant-member( member -- class )
parse-variant-member( name -- member )
parse-variant-members( -- members )
parse-variant-tuple-member( name -- member )


Class predicate words
WordStack effect
variant-class?( object -- ? )


Files


Metadata files