From: Ben Pfaff Date: Tue, 6 May 2025 18:54:01 +0000 (-0700) Subject: work on manual X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9dad154108719d80d775d0b176377aea4e24e2a4;p=pspp work on manual --- diff --git a/rust/doc/src/language/expressions/arithmetic.md b/rust/doc/src/language/expressions/arithmetic.md deleted file mode 100644 index 1f4db7d9a0..0000000000 --- a/rust/doc/src/language/expressions/arithmetic.md +++ /dev/null @@ -1,27 +0,0 @@ -# Arithmetic Operators - -The arithmetic operators take numeric operands and produce numeric -results. - -* `A + B` - The sum of `A` and `B`. - -* `A - B` - The difference when `B` is subtracted from `A`. - -* `A * B` - The product of `A` and `B`. If either `A` or `B` is 0, then the result is - 0, even if the other operand is missing. - -* `A / B` - The quotient of `A` divided by `B`. If `A` is 0, then the result is 0, - even if `B` is missing. If `B` is zero, the result is system-missing. - -* `A ** B` - Yields the result of raising `A` to the power `B`. If `A` is - negative and `B` is not an integer, the result is system-missing. - `0**0` is also system-missing. - -* `- A` - Reverses the sign of `A`. - diff --git a/rust/doc/src/language/expressions/boolean-values.md b/rust/doc/src/language/expressions/boolean-values.md deleted file mode 100644 index 11cf592171..0000000000 --- a/rust/doc/src/language/expressions/boolean-values.md +++ /dev/null @@ -1,14 +0,0 @@ -# Boolean Values - -Some PSPP operators and expressions work with Boolean values, which -represent true/false conditions. Booleans have only three possible -values: 0 (false), 1 (true), and system-missing (unknown). -System-missing is neither true nor false and indicates that the true -value is unknown. - - Boolean-typed operands or function arguments must take on one of -these three values. Other values are considered false, but provoke a -warning when the expression is evaluated. - - Strings and Booleans are not compatible, and neither may be used in -place of the other. diff --git a/rust/doc/src/language/expressions/grouping.md b/rust/doc/src/language/expressions/grouping.md deleted file mode 100644 index c777321eb6..0000000000 --- a/rust/doc/src/language/expressions/grouping.md +++ /dev/null @@ -1,8 +0,0 @@ -# Grouping Operators - -Parentheses (`()`) are the grouping operators. Surround an expression -with parentheses to force early evaluation. - - Parentheses also surround the arguments to functions, but in that -situation they act as punctuators, not as operators. - diff --git a/rust/doc/src/language/expressions/logical.md b/rust/doc/src/language/expressions/logical.md deleted file mode 100644 index 9d6e9b903a..0000000000 --- a/rust/doc/src/language/expressions/logical.md +++ /dev/null @@ -1,24 +0,0 @@ -# Logical Operators - -The logical operators take logical operands and produce logical results, -meaning "true or false." Logical operators are not true Boolean -operators because they may also result in a system-missing value. *Note -Boolean Values::, for more information. - -* `A AND B` - `A & B` - True if both `A` and `B` are true, false otherwise. If one operand - is false, the result is false even if the other is missing. If both - operands are missing, the result is missing. - -* `A OR B` - `A | B` - True if at least one of `A` and `B` is true. If one operand is - true, the result is true even if the other operand is missing. If - both operands are missing, the result is missing. - -* `NOT A` - `~A` - True if `A` is false. If the operand is missing, then the result is - missing. - diff --git a/rust/doc/src/language/expressions/missing-values.md b/rust/doc/src/language/expressions/missing-values.md deleted file mode 100644 index 6830e403b0..0000000000 --- a/rust/doc/src/language/expressions/missing-values.md +++ /dev/null @@ -1,17 +0,0 @@ -# Missing Values in Expressions - -Most numeric operators yield system-missing when given any -system-missing operand. A string operator given any system-missing -operand typically results in the empty string. Exceptions are listed -under particular operator descriptions. - - String user-missing values are not treated specially in expressions. - - User-missing values for numeric variables are always transformed into -the system-missing value, except inside the arguments to the `VALUE` and -`SYSMIS` functions. - - The missing-value functions can be used to precisely control how -missing values are treated in expressions. *Note Missing Value -Functions::, for more details. -