scan-object ( -- object )
Factor documentation > Factor handbook > The language > Parsing words > Reading ahead
Prev:scan-number ( -- number )
Next:(scan-token) ( -- str/f )


Vocabulary
parser

Inputs and outputs
objectan object


Word description
Parses a literal representation of an object.

Notes
This word should only be called from parsing words.

Definition
USING: kernel sequences words ;

IN: parser

: scan-object ( -- object )
scan-datum dup parsing-word?
[ V{ } clone swap execute-parsing first ] when ;