?scan-datum ( -- word/number/f )
Factor handbook » The language » Parsing words » Reading ahead

Prev:?scan-token ( -- str/f )


Vocabulary
parser

Inputs
None

Outputs
word/number/fa word, a number, or f


Word description
Reads the next token from parser input. If the token is found in the vocabulary search path, returns the word named by the token. If the token does not find a word, it is next converted to a number. If this conversion fails, too, this word returns f.

Notes
This word should only be called from parsing words.

Definition