regexp vocabulary - Factor Documentation (original) (raw)

regexp vocabulary
Factor handbook » Vocabulary index

Documentation
Regular expressions

Metadata

Tags: regexp, parsing, text
Authors: Doug Coleman, Daniel Ehrenberg

Words

Tuple classes

Class Superclass Slots
regexp tuple raw parse-tree options dfa next-match
reverse-regexp regexp

Parsing words

Word Syntax
R/ R/ foo.*|[a-zA-Z]bar/options

Ordinary words

Word Stack effect
( string options -- regexp )
( string -- regexp )
all-matching-slices ( string regexp -- seq )
all-matching-subseqs ( string regexp -- seq )
count-matches ( string regexp -- n )
each-match ( ... string regexp quot: ( ... start end string -- ... ) -- ... )
first-match ( string regexp -- slice/f )
make-regexp ( string ast -- regexp )
map-matches ( ... string regexp quot: ( ... start end string -- ... obj ) -- ... seq )
matches? ( string regexp -- ? )
new-regexp ( string ast options class -- regexp )
re-contains? ( string regexp -- ? )
re-replace ( string regexp replacement -- result )
re-replace-with ( string regexp quot: ( slice -- replacement ) -- result )
re-split ( string regexp -- seq )

Class predicate words

Word Stack effect
regexp? ( object -- ? )
reverse-regexp? ( object -- ? )

Files

resource:basis/regexp/regexp.factor
resource:basis/regexp/regexp-docs.factor
resource:basis/regexp/regexp-tests.factor

Metadata files

resource:basis/regexp/authors.txt
resource:basis/regexp/summary.txt
resource:basis/regexp/tags.txt

Children from resource:basis

Vocabulary Summary
regexp.ast
regexp.classes
regexp.combinators Combinators for creating regular expressions
regexp.compiler
regexp.dfa
regexp.disambiguate
regexp.minimize
regexp.negation
regexp.nfa
regexp.parser
regexp.prettyprint
regexp.transition-tables