Factor Documentation
|
Home
|
Glossary
|
Search
factorcode.org
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
object
an
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
;