combinators.smart, multiline: few $examples turn into $codes
parent
2e08b85977
commit
61881f1977
|
@ -158,10 +158,9 @@ HELP: nullary
|
||||||
}
|
}
|
||||||
{ $description "Infers the number of inputs to a quotation and drops them from the stack." }
|
{ $description "Infers the number of inputs to a quotation and drops them from the stack." }
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example
|
{ $code
|
||||||
"""USING: combinators.smart kernel math ;
|
"""USING: combinators.smart kernel math ;
|
||||||
1 2 [ + ] nullary"""
|
1 2 [ + ] nullary"""
|
||||||
""
|
|
||||||
}
|
}
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
|
|
|
@ -8,10 +8,9 @@ HELP: STRING:
|
||||||
HELP: /*
|
HELP: /*
|
||||||
{ $syntax "/* comment */" }
|
{ $syntax "/* comment */" }
|
||||||
{ $description "Provides C-like comments that can span multiple lines. One caveat is that " { $snippet "/*" } " and " { $snippet "*/" } " are still tokens and must not abut the comment text itself." }
|
{ $description "Provides C-like comments that can span multiple lines. One caveat is that " { $snippet "/*" } " and " { $snippet "*/" } " are still tokens and must not abut the comment text itself." }
|
||||||
{ $example "USING: multiline ;"
|
{ $code "USING: multiline ;"
|
||||||
"/* I think that I shall never see"
|
"/* I think that I shall never see"
|
||||||
" A poem lovely as a tree. */"
|
" A poem lovely as a tree. */"
|
||||||
""
|
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
HELP: HEREDOC:
|
HELP: HEREDOC:
|
||||||
|
|
Loading…
Reference in New Issue