sequences.parser vocabulary
Factor handbook ยป Vocabulary index


Documentation
Sequence parser

Metadata
Parents:sequences
Authors:Daniel Ehrenberg, Doug Coleman


Words

Tuple classes
ClassSuperclassSlots
sequence-parser tuplesequence n


Ordinary words
WordStack effect
<safe-slice>( from to seq -- slice/f )
<sequence-parser>( sequence -- sequence-parser )
advance( sequence-parser -- sequence-parser )
consume( sequence-parser -- obj/f )
current( sequence-parser -- obj/f )
next( sequence-parser -- obj/f )
offset( sequence-parser offset -- obj/f )
parse-sequence( ..a sequence quot: ( ..a parser -- ..b ) -- ..b )
peek-next( sequence-parser -- obj/f )
previous( sequence-parser -- obj/f )
sequence-parse-end?( sequence-parser -- ? )
skip-until( ... sequence-parser quot: ( ... obj -- ... ? ) -- ... )
skip-whitespace( sequence-parser -- sequence-parser )
skip-whitespace-eol( sequence-parser -- sequence-parser )
sort-tokens( seq -- seq' )
take-first-matching( sequence-parser seq -- seq )
take-integer( sequence-parser -- n/f )
take-longest( sequence-parser seq -- seq )
take-n( sequence-parser n -- seq/f )
take-rest( sequence-parser -- sequence )
take-rest-slice( sequence-parser -- sequence/f )
take-sequence( sequence-parser sequence -- obj/f )
take-sequence*( sequence-parser sequence -- )
take-until( ... sequence-parser quot: ( ... obj -- ... ? ) -- ... sequence/f )
take-until-object( sequence-parser obj -- sequence )
take-until-sequence( sequence-parser sequence -- sequence'/f )
take-until-sequence*( sequence-parser sequence -- sequence'/f )
take-while( ... sequence-parser quot: ( ... obj -- ... ? ) -- ... sequence/f )
with-sequence-parser( ..a sequence-parser quot: ( ..a parser -- ..b obj/f ) -- ..b obj/f )
write-full( sequence-parser -- )
write-rest( sequence-parser -- )


Class predicate words
WordStack effect
sequence-parser?( object -- ? )


Files


Metadata files