]> gitweb.factorcode.org Git - factor.git/blob - extra/qw/qw-docs.factor
376cd3a984a25b970597269b02340953a86eb4d0
[factor.git] / extra / qw / qw-docs.factor
1 ! (c)2009 Joe Groff bsd license
2 USING: help.markup help.syntax multiline ;
3 IN: qw
4
5 HELP: qw{
6 { $syntax "qw{ lorem ipsum }" }
7 { $description "Marks the beginning of a literal array of strings. Component strings are delimited by whitespace." }
8 { $examples
9 { $unchecked-example "USING: prettyprint qw ;
10 qw{ pop quiz my hive of big wild ex tranny jocks } ."
11 "{ \"pop\" \"quiz\" \"my\" \"hive\" \"of\" \"big\" \"wild\" \"ex\" \"tranny\" \"jocks\" }" }
12 } ;
13
14 ARTICLE: "qw" "Quoted words"
15 "The " { $vocab-link "qw" } " vocabulary offers a shorthand syntax for arrays-of-strings literals." $nl
16 "Construct an array of strings:"
17 { $subsections POSTPONE: qw{ } ;
18
19 ABOUT: "qw"