match vocabulary
Factor handbook ยป Vocabulary index


Documentation
Pattern matching

Metadata
Tags:extensions
Authors:Chris Double


Words

Tuple classes
ClassSuperclassSlots
no-match-cond tuple


Predicate classes
ClassSuperclass
match-var word


Parsing words
WordSyntax
MATCH-VARS:MATCH-VARS: var ... ;


Generic words
WordStack effect
replace-patterns( object -- result )


Macro words
WordStack effect
match-cond( assoc -- quot )


Symbol words
_


Ordinary words
WordStack effect
(match)( value1 value2 -- matched? )
(match-all)( seq pattern-seq -- )
(match-first)( seq pattern-seq -- bindings leftover/f )
?rest( seq -- tailseq/f )
define-match-var( name -- )
define-match-vars( seq -- )
match( value1 value2 -- bindings )
match-all( seq pattern-seq -- bindings-seq )
match-first( seq pattern-seq -- bindings )
match-replace( object pattern1 pattern2 -- result )
no-match-cond( -- * )
set-match-var( value var -- ? )


Class predicate words
WordStack effect
match-var?( object -- ? )
no-match-cond?( object -- ? )


Files


Metadata files