factor/extra/qualified/qualified-docs.factor

35 lines
1.1 KiB
Factor
Raw Normal View History

2008-01-05 17:27:15 -05:00
USING: help.markup help.syntax ;
IN: qualified
2007-09-20 18:09:08 -04:00
HELP: QUALIFIED:
{ $syntax "QUALIFIED: vocab" }
{ $description "Similar to " { $link POSTPONE: USE: } " but loads vocabulary with prefix." }
{ $examples { $code
"QUALIFIED: math\n1 2 math:+ ! ==> 3" } } ;
HELP: QUALIFIED-WITH:
{ $syntax "QUALIFIED-WITH: vocab prefix" }
{ $description "Works like " { $link POSTPONE: QUALIFIED: } " but uses the specified prefix." }
{ $examples { $code
"QUALIFIED-WITH: math m\n1 2 m:+ ! ==> 3" } } ;
HELP: FROM:
{ $syntax "FROM: vocab => words ... ;" }
{ $description "Imports the specified words from vocab." }
{ $examples { $code
"FROM: math.parser => bin> hex> ; ! imports only bin> and hex>" } } ;
HELP: EXCLUDE:
{ $syntax "EXCLUDE: vocab => words ... ;" }
{ $description "Imports everything from vocab excluding the specified words" }
{ $examples { $code
"EXCLUDE: math.parser => bin> hex> ; ! imports everythin but bin> and hex>" } } ;
HELP: RENAME:
{ $syntax "RENAME: word vocab => newname " }
{ $description "Imports word from vocab, but renamed to newname." }
{ $examples { $code
"RENAME: + math => -"
"2 3 - ! => 5" } } ;