2009-04-25 20:24:01 -04:00
|
|
|
! (c)2009 Joe Groff bsd license
|
2009-04-25 20:22:47 -04:00
|
|
|
USING: help.markup help.syntax multiline ;
|
|
|
|
IN: qw
|
|
|
|
|
|
|
|
HELP: qw{
|
|
|
|
{ $syntax "qw{ lorem ipsum }" }
|
|
|
|
{ $description "Marks the beginning of a literal array of strings. Component strings are delimited by whitespace." }
|
|
|
|
{ $examples
|
2009-09-20 23:42:40 -04:00
|
|
|
{ $unchecked-example """USING: prettyprint qw ;
|
|
|
|
qw{ pop quiz my hive of big wild ex tranny jocks } ."""
|
|
|
|
"""{ "pop" "quiz" "my" "hive" "of" "big" "wild" "ex" "tranny" "jocks" }""" }
|
2009-04-25 20:22:47 -04:00
|
|
|
} ;
|
2009-09-20 23:42:40 -04:00
|
|
|
|
|
|
|
ARTICLE: "qw" "Quoted words"
|
|
|
|
"The " { $vocab-link "qw" } " vocabulary offers a shorthand syntax for arrays-of-strings literals." $nl
|
|
|
|
"Construct an array of strings:"
|
2009-10-01 15:56:36 -04:00
|
|
|
{ $subsections POSTPONE: qw{ } ;
|
2009-09-20 23:42:40 -04:00
|
|
|
|
|
|
|
ABOUT: "qw"
|