In several documentation, remove whitespace before or after the colon or period
parent
27f1abd70e
commit
073eda332a
|
@ -4,7 +4,7 @@ IN: concurrency.distributed
|
||||||
ARTICLE: "concurrency.distributed.example" "Distributed Concurrency Example"
|
ARTICLE: "concurrency.distributed.example" "Distributed Concurrency Example"
|
||||||
"In this example the Factor instance associated with port 9000 will run "
|
"In this example the Factor instance associated with port 9000 will run "
|
||||||
"a thread that receives and prints messages "
|
"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
|
{ $examples
|
||||||
{ $unchecked-example
|
{ $unchecked-example
|
||||||
": log-message ( -- ) receive . flush log-message ;"
|
": log-message ( -- ) receive . flush log-message ;"
|
||||||
|
|
|
@ -17,7 +17,7 @@ $nl
|
||||||
{ { $slot "header" } { "An assoc of HTTP header values. See " { $link "http.headers" } } }
|
{ { $slot "header" } { "An assoc of HTTP header values. See " { $link "http.headers" } } }
|
||||||
{ { $slot "post-data" } { "See " { $link "http.post-data" } } }
|
{ { $slot "post-data" } { "See " { $link "http.post-data" } } }
|
||||||
{ { $slot "cookies" } { "A sequence of HTTP cookies. See " { $link "http.cookies" } } }
|
{ { $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>
|
HELP: <response>
|
||||||
|
|
|
@ -150,7 +150,7 @@ int-4{ f f t f } ."""
|
||||||
$nl
|
$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."
|
"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
|
$nl
|
||||||
"This applies to the output of the following element comparison words: "
|
"This applies to the output of the following element comparison words:"
|
||||||
{ $list
|
{ $list
|
||||||
{ $link v< }
|
{ $link v< }
|
||||||
{ $link v<= }
|
{ $link v<= }
|
||||||
|
|
|
@ -319,7 +319,7 @@ ARTICLE: "peg.ebnf.tokenizers" "Tokenizers"
|
||||||
"This parser when run with the string \"++--\" or the array "
|
"This parser when run with the string \"++--\" or the array "
|
||||||
"{ CHAR: + CHAR: + CHAR: - CHAR: - } will succeed with an AST of { \"++\" \"--\" }. "
|
"{ 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 "
|
"If you want to add whitespace handling to the grammar you need to put it "
|
||||||
"between the terminals: "
|
"between the terminals:"
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $code
|
{ $code
|
||||||
"EBNF: foo"
|
"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. "
|
"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 "
|
"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 "
|
"have the grammar operate on these tokens. This is how the previous example "
|
||||||
"might look: "
|
"might look:"
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $code
|
{ $code
|
||||||
"EBNF: foo"
|
"EBNF: foo"
|
||||||
|
@ -355,7 +355,7 @@ ARTICLE: "peg.ebnf.tokenizers" "Tokenizers"
|
||||||
$nl
|
$nl
|
||||||
"In this example I split the tokenizer into a separate parser and use "
|
"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 "
|
"'foreign' to call it from the main one. This allows testing of the "
|
||||||
"tokenizer separately: "
|
"tokenizer separately:"
|
||||||
{ $examples
|
{ $examples
|
||||||
{ $example
|
{ $example
|
||||||
"USING: prettyprint peg peg.ebnf kernel math.parser strings"
|
"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 "
|
"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 "
|
"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 "
|
"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
|
{ $examples
|
||||||
{ $code
|
{ $code
|
||||||
"EBNF: javascript"
|
"EBNF: javascript"
|
||||||
|
@ -440,7 +440,7 @@ ARTICLE: "peg.ebnf" "EBNF"
|
||||||
POSTPONE: [EBNF
|
POSTPONE: [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
|
{ $code
|
||||||
"rule1 = ..."
|
"rule1 = ..."
|
||||||
"rule2 = ..."
|
"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 "
|
"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 "
|
"and it is expected that the remaining rules are used by that rule. Rules may be "
|
||||||
"left recursive. "
|
"left recursive. "
|
||||||
"Each rule can contain the following: "
|
"Each rule can contain the following:"
|
||||||
{ $subsections "peg.ebnf.strings"
|
{ $subsections "peg.ebnf.strings"
|
||||||
"peg.ebnf.any"
|
"peg.ebnf.any"
|
||||||
"peg.ebnf.sequence"
|
"peg.ebnf.sequence"
|
||||||
|
|
|
@ -48,7 +48,7 @@ ARTICLE: "inference-combinators" "Combinator stack effects"
|
||||||
": perform ( value action -- result ) quot>> call( value -- result ) ;"
|
": perform ( value action -- result ) quot>> call( value -- result ) ;"
|
||||||
}
|
}
|
||||||
{ $subheading "Passing an unknown quotation to an inline combinator" }
|
{ $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 ;" }
|
{ $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:"
|
"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 ;" }
|
{ $code ": perform ( values action -- results )" " quot>> [ call( value -- result ) ] curry map ;" }
|
||||||
|
|
|
@ -5,7 +5,7 @@ classes.predicate quotations ;
|
||||||
IN: classes
|
IN: classes
|
||||||
|
|
||||||
ARTICLE: "class-predicates" "Class predicate words"
|
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
|
$nl
|
||||||
"When it comes to predicates, the exceptional classes are:"
|
"When it comes to predicates, the exceptional classes are:"
|
||||||
{ $table
|
{ $table
|
||||||
|
|
|
@ -95,7 +95,7 @@ $nl
|
||||||
|
|
||||||
|
|
||||||
$nl
|
$nl
|
||||||
"Utility words for displaying images :"
|
"Utility words for displaying images:"
|
||||||
{ $subsections
|
{ $subsections
|
||||||
image. image-window }
|
image. image-window }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue