constructors vocabulary
Factor handbook ยป Vocabulary index


Summary
Utility to simplify tuple constructors

Metadata
Tags:extensions
Authors:Slava Pestov


Words

Tuple classes
ClassSuperclassSlots
repeated-constructor-parameters tupleclass effect
unknown-constructor-parameters tupleclass effect unknown


Parsing words
WordSyntax
CONSTRUCTOR:
SLOT-CONSTRUCTOR:


Macro words
WordStack effect
slots>boa( slots class -- quot )


Ordinary words
WordStack effect
all-slots-assoc( class -- slots )
constructor-boa-quot( constructor-word class effect -- word quot )
create-reset( string -- word )
define-constructor( constructor-word class effect -- )
ensure-constructor-parameters( class effect -- class effect )
parse-constructor( -- word class effect def )
repeated-constructor-parameters( class effect -- * )
scan-constructor( -- word class )
scan-full-input-effect( -- effect )
scan-rest-input-effect( -- effect )
unknown-constructor-parameters( class effect unknown -- * )


Class predicate words
WordStack effect
repeated-constructor-parameters?( object -- ? )
unknown-constructor-parameters?( object -- ? )


Files


Metadata files