In several documentation, remove whitespace before or after the colon or period

db4
Keita Haga 2011-02-10 01:51:13 +09:00
parent 27f1abd70e
commit 073eda332a
7 changed files with 24 additions and 24 deletions

View File

@ -4,7 +4,7 @@ IN: concurrency.distributed
ARTICLE: "concurrency.distributed.example" "Distributed Concurrency Example"
"In this example the Factor instance associated with port 9000 will run "
"a thread that receives and prints messages "
"in the listener. The code to start the thread is: "
"in the listener. The code to start the thread is:"
{ $examples
{ $unchecked-example
": log-message ( -- ) receive . flush log-message ;"

View File

@ -17,7 +17,7 @@ $nl
{ { $slot "header" } { "An assoc of HTTP header values. See " { $link "http.headers" } } }
{ { $slot "post-data" } { "See " { $link "http.post-data" } } }
{ { $slot "cookies" } { "A sequence of HTTP cookies. See " { $link "http.cookies" } } }
{ { $slot "redirects" } { "Number of redirects to attempt before throwing an error. Default is " { $snippet "max-redirects" } " ." } }
{ { $slot "redirects" } { "Number of redirects to attempt before throwing an error. Default is " { $snippet "max-redirects" } "." } }
} } ;
HELP: <response>

View File

@ -150,7 +150,7 @@ int-4{ f f t f } ."""
$nl
"Providing a SIMD boolean vector with element values other than the proper true and false representations as an input to the vector logical or test operations is undefined. Do not count on operations such as " { $link vall? } " or " { $link v? } " using bitwise operations to construct their results."
$nl
"This applies to the output of the following element comparison words: "
"This applies to the output of the following element comparison words:"
{ $list
{ $link v< }
{ $link v<= }

View File

@ -319,7 +319,7 @@ ARTICLE: "peg.ebnf.tokenizers" "Tokenizers"
"This parser when run with the string \"++--\" or the array "
"{ CHAR: + CHAR: + CHAR: - CHAR: - } will succeed with an AST of { \"++\" \"--\" }. "
"If you want to add whitespace handling to the grammar you need to put it "
"between the terminals: "
"between the terminals:"
{ $examples
{ $code
"EBNF: foo"
@ -332,7 +332,7 @@ ARTICLE: "peg.ebnf.tokenizers" "Tokenizers"
"In a large grammar this gets tedious and makes the grammar hard to read. "
"Instead you can write a rule to split the input sequence into tokens, and "
"have the grammar operate on these tokens. This is how the previous example "
"might look: "
"might look:"
{ $examples
{ $code
"EBNF: foo"
@ -355,7 +355,7 @@ ARTICLE: "peg.ebnf.tokenizers" "Tokenizers"
$nl
"In this example I split the tokenizer into a separate parser and use "
"'foreign' to call it from the main one. This allows testing of the "
"tokenizer separately: "
"tokenizer separately:"
{ $examples
{ $example
"USING: prettyprint peg peg.ebnf kernel math.parser strings"
@ -397,7 +397,7 @@ $nl
"working in one pass. There is no tokenization occurring over the whole string "
"followed by the parse of that result. It tokenizes as it needs to. You can even "
"switch tokenizers multiple times during a grammar. Rules use the tokenizer that "
"was defined lexically before the rule. This is usefull in the JavaScript grammar: "
"was defined lexically before the rule. This is usefull in the JavaScript grammar:"
{ $examples
{ $code
"EBNF: javascript"
@ -440,7 +440,7 @@ ARTICLE: "peg.ebnf" "EBNF"
POSTPONE: [EBNF
POSTPONE: EBNF:
}
"The EBNF syntax is composed of a series of rules of the form: "
"The EBNF syntax is composed of a series of rules of the form:"
{ $code
"rule1 = ..."
"rule2 = ..."
@ -448,7 +448,7 @@ ARTICLE: "peg.ebnf" "EBNF"
"The last defined rule is the main rule for the EBNF. It is the first one run "
"and it is expected that the remaining rules are used by that rule. Rules may be "
"left recursive. "
"Each rule can contain the following: "
"Each rule can contain the following:"
{ $subsections "peg.ebnf.strings"
"peg.ebnf.any"
"peg.ebnf.sequence"

View File

@ -48,7 +48,7 @@ ARTICLE: "inference-combinators" "Combinator stack effects"
": perform ( value action -- result ) quot>> call( value -- result ) ;"
}
{ $subheading "Passing an unknown quotation to an inline combinator" }
"Suppose we want to write :"
"Suppose we want to write:"
{ $code ": perform ( values action -- results ) quot>> map ;" }
"However this fails to pass the stack checker since there is no guarantee the quotation has the right stack effect for " { $link map } ". It can be wrapped in a new quotation with a declaration:"
{ $code ": perform ( values action -- results )" " quot>> [ call( value -- result ) ] curry map ;" }

View File

@ -5,7 +5,7 @@ classes.predicate quotations ;
IN: classes
ARTICLE: "class-predicates" "Class predicate words"
"With a handful of exceptions, each class has a membership predicate word, named " { $snippet { $emphasis "class" } "?" } " . A quotation calling this predicate is stored in the " { $snippet "\"predicate\"" } " word property."
"With a handful of exceptions, each class has a membership predicate word, named " { $snippet { $emphasis "class" } "?" } ". A quotation calling this predicate is stored in the " { $snippet "\"predicate\"" } " word property."
$nl
"When it comes to predicates, the exceptional classes are:"
{ $table

View File

@ -95,7 +95,7 @@ $nl
$nl
"Utility words for displaying images :"
"Utility words for displaying images:"
{ $subsections
image. image-window }