lexer vocabulary
Factor handbook > Vocabulary index


Summary
Factor source code lexer

Meta-data
Tags:parsing
Authors:Slava Pestov, Joe Groff


Words

Tuple classes
ClassSuperclassSlots
lexer tupletext line line-text line-length column parsing-words
lexer-error tupleline column line-text parsing-words error
lexer-parsing-word tupleword line line-text column
not-a-lexer tupleobject
unexpected tuplewant got


Predicate classes
ClassSuperclass
unexpected-eof unexpected


Generic words
WordStack effect
skip-blank( lexer -- )
skip-word( lexer -- )


Ordinary words
WordStack effect
(parse-raw)( lexer -- str )
(parsing-word-lexer-dump)( error parsing-word -- )
<lexer-error>( msg -- error )
<lexer>( text -- lexer )
?scan-token( -- str/f )
change-lexer-column( ..a lexer quot: ( ..a col line -- ..b newcol ) -- ..b )
check-lexer( lexer -- lexer )
each-token( ... end quot: ( ... token -- ... ) -- ... )
expect( token -- )
forbid-tab( c -- c )
lexer-dump( error -- )
map-tokens( ... end quot: ( ... token -- ... elt ) -- ... seq )
new-lexer( text class -- lexer )
next-line( lexer -- )
not-a-lexer( object -- * )
parse-raw( lexer -- str/f )
parse-token( lexer -- str/f )
parse-tokens( end -- seq )
parsing-word-lexer-dump( error parsing-word -- )
pop-parsing-word( -- )
push-parsing-word( word -- )
scan-token( -- str )
simple-lexer-dump( error -- )
skip( i seq ? -- n )
skip-comments( lexer str -- str' )
still-parsing-line?( lexer -- ? )
still-parsing?( lexer -- ? )
throw-unexpected-eof( word -- * )
unexpected( want got -- * )
with-lexer( lexer quot -- newquot )


Class predicate words
WordStack effect
lexer-error?( object -- ? )
lexer-parsing-word?( object -- ? )
lexer?( object -- ? )
not-a-lexer?( object -- ? )
unexpected-eof?( object -- ? )
unexpected?( object -- ? )


Files


Children
VocabularySummary
lexer.privatelexer.private vocabulary