lexer vocabulary
Factor handbook ยป Vocabulary index


Summary
Factor source code lexer

Metadata
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
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 )
<lexer-error>( msg -- error )
<lexer>( text -- lexer )
?scan-token( -- str/f )
change-lexer-column( ..a lexer quot: ( ..a col line -- ..b newcol ) -- ..b )
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 -- )
parse-raw( lexer -- str/f )
parse-token( lexer -- str/f )
parse-tokens( end -- seq )
pop-parsing-word( -- )
push-parsing-word( word -- )
scan-token( -- str )
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 -- ? )
unexpected-eof?( object -- ? )
unexpected?( object -- ? )


Files


Metadata files