From bea4aa76624e94a66360ae9b79afc8b938e6a65f Mon Sep 17 00:00:00 2001 From: Keith Lazuka Date: Tue, 22 Sep 2009 15:22:34 -0400 Subject: [PATCH] docs: updated some docs to use new markup --- basis/grouping/grouping-docs.factor | 18 +- basis/math/functions/functions-docs.factor | 125 +++--- .../combinators/combinators-docs.factor | 21 +- basis/regexp/regexp-docs.factor | 42 ++- core/combinators/combinators-docs.factor | 140 +++---- core/math/parser/parser-docs.factor | 24 +- core/sequences/sequences-docs.factor | 357 +++++++++--------- core/sorting/sorting-docs.factor | 14 +- 8 files changed, 356 insertions(+), 385 deletions(-) diff --git a/basis/grouping/grouping-docs.factor b/basis/grouping/grouping-docs.factor index 07250058ae..d64745b834 100644 --- a/basis/grouping/grouping-docs.factor +++ b/basis/grouping/grouping-docs.factor @@ -3,17 +3,13 @@ IN: grouping ARTICLE: "grouping" "Groups and clumps" "Splitting a sequence into disjoint, fixed-length subsequences:" -{ $subsection group } +{ $subsections group } "A virtual sequence for splitting a sequence into disjoint, fixed-length subsequences:" -{ $subsection groups } -{ $subsection } -{ $subsection } +{ $subsections groups } "Splitting a sequence into overlapping, fixed-length subsequences:" -{ $subsection clump } +{ $subsections clump } "A virtual sequence for splitting a sequence into overlapping, fixed-length subsequences:" -{ $subsection clumps } -{ $subsection } -{ $subsection } +{ $subsections clumps } "The difference can be summarized as the following:" { $list { "With groups, the subsequences form the original sequence when concatenated:" @@ -29,11 +25,11 @@ ARTICLE: "grouping" "Groups and clumps" } } } +$nl "A combinator built using clumps:" -{ $subsection monotonic? } +{ $subsections monotonic? } "Testing how elements are related:" -{ $subsection all-eq? } -{ $subsection all-equal? } ; +{ $subsections all-eq? all-equal? } ; ABOUT: "grouping" diff --git a/basis/math/functions/functions-docs.factor b/basis/math/functions/functions-docs.factor index d61ad9a14a..2735fa3903 100644 --- a/basis/math/functions/functions-docs.factor +++ b/basis/math/functions/functions-docs.factor @@ -3,102 +3,95 @@ sequences quotations math.functions.private ; IN: math.functions ARTICLE: "integer-functions" "Integer functions" -{ $subsection align } -{ $subsection gcd } -{ $subsection log2 } -{ $subsection next-power-of-2 } +{ $subsections + align + gcd + log2 + next-power-of-2 +} "Modular exponentiation:" -{ $subsection ^mod } -{ $subsection mod-inv } +{ $subsections ^mod mod-inv } "Tests:" -{ $subsection power-of-2? } -{ $subsection even? } -{ $subsection odd? } -{ $subsection divisor? } ; +{ $subsections + power-of-2? + even? + odd? + divisor? +} ; ARTICLE: "arithmetic-functions" "Arithmetic functions" "Computing additive and multiplicative inverses:" -{ $subsection neg } -{ $subsection recip } +{ $subsections neg recip } "Complex conjugation:" -{ $subsection conjugate } +{ $subsections conjugate } "Tests:" -{ $subsection zero? } -{ $subsection between? } +{ $subsections zero? between? } "Control flow:" -{ $subsection if-zero } -{ $subsection when-zero } -{ $subsection unless-zero } +{ $subsections + if-zero + when-zero + unless-zero +} "Sign:" -{ $subsection sgn } +{ $subsections sgn } "Rounding:" -{ $subsection ceiling } -{ $subsection floor } -{ $subsection truncate } -{ $subsection round } +{ $subsections + ceiling + floor + truncate + round +} "Inexact comparison:" -{ $subsection ~ } +{ $subsections ~ } "Numbers implement the " { $link "math.order" } ", therefore operations such as " { $link min } " and " { $link max } " can be used with numbers." ; ARTICLE: "power-functions" "Powers and logarithms" "Squares:" -{ $subsection sq } -{ $subsection sqrt } +{ $subsections sq sqrt } "Exponential and natural logarithm:" -{ $subsection exp } -{ $subsection cis } -{ $subsection log } -{ $subsection log1+ } -{ $subsection log10 } +{ $subsections + exp + cis + log + log1+ + log10 +} "Raising a number to a power:" -{ $subsection ^ } -{ $subsection 10^ } +{ $subsections ^ 10^ } "Converting between rectangular and polar form:" -{ $subsection abs } -{ $subsection absq } -{ $subsection arg } -{ $subsection >polar } -{ $subsection polar> } ; +{ $subsections + abs + absq + arg + >polar + polar> +} ; ARTICLE: "trig-hyp-functions" "Trigonometric and hyperbolic functions" "Trigonometric functions:" -{ $subsection cos } -{ $subsection sin } -{ $subsection tan } +{ $subsections cos sin tan } "Reciprocals:" -{ $subsection sec } -{ $subsection cosec } -{ $subsection cot } +{ $subsections sec cosec cot } "Inverses:" -{ $subsection acos } -{ $subsection asin } -{ $subsection atan } +{ $subsections acos asin atan } "Inverse reciprocals:" -{ $subsection asec } -{ $subsection acosec } -{ $subsection acot } +{ $subsections asec acosec acot } "Hyperbolic functions:" -{ $subsection cosh } -{ $subsection sinh } -{ $subsection tanh } +{ $subsections cosh sinh tanh } "Reciprocals:" -{ $subsection sech } -{ $subsection cosech } -{ $subsection coth } +{ $subsections sech cosech coth } "Inverses:" -{ $subsection acosh } -{ $subsection asinh } -{ $subsection atanh } +{ $subsections acosh asinh atanh } "Inverse reciprocals:" -{ $subsection asech } -{ $subsection acosech } -{ $subsection acoth } ; +{ $subsections asech acosech acoth } ; ARTICLE: "math-functions" "Mathematical functions" -{ $subsection "integer-functions" } -{ $subsection "arithmetic-functions" } -{ $subsection "power-functions" } -{ $subsection "trig-hyp-functions" } ; +{ $subsections + "integer-functions" + "arithmetic-functions" + "power-functions" + "trig-hyp-functions" +} ; ABOUT: "math-functions" diff --git a/basis/regexp/combinators/combinators-docs.factor b/basis/regexp/combinators/combinators-docs.factor index a49b16b585..20d5624025 100644 --- a/basis/regexp/combinators/combinators-docs.factor +++ b/basis/regexp/combinators/combinators-docs.factor @@ -18,20 +18,21 @@ ARTICLE: "regexp.combinators.intro" "Regular expression combinator rationale" ARTICLE: "regexp.combinators" "Regular expression combinators" "The " { $vocab-link "regexp.combinators" } " vocabulary defines combinators which can be used to build up regular expressions to match strings. This complements the traditional syntax defined in the " { $vocab-link "regexp" } " vocabulary." -{ $subsection "regexp.combinators.intro" } +{ $subsections "regexp.combinators.intro" } "Basic combinators:" -{ $subsection } -{ $subsection } +{ $subsections } "Higher-order combinators for building new regular expressions from existing ones:" -{ $subsection } -{ $subsection } -{ $subsection } -{ $subsection } -{ $subsection } +{ $subsections + + + + + +} "Derived combinators implemented in terms of the above:" -{ $subsection } +{ $subsections } "Setting options:" -{ $subsection