Handbook
Glossary
P"
Factor handbook
»
Input and output
»
Pathnames
»
Pathname presentations
Prev:
<pathname> ( string -- pathname )
Vocabulary
syntax
Syntax
P" pathname"
Inputs
None
Outputs
None
Word description
Reads from the input string until the next occurrence of
"
, creates a new
pathname
, and appends it to the parse tree. Pathnames presented in the UI are clickable, which opens them in a text editor configured with
Editor integration
.
Examples
USING: accessors io io.files ; P" foo.txt" string>> print
foo.txt
Definition
USING:
io.pathnames
lexer
namespaces
sequences
strings.parser
;
IN:
syntax
SYNTAX:
P"
lexer
get
skip-blank
parse-string
<pathname>
suffix!
;