Add tty and listing devices that use VT100 (and xterm) line-drawing
[pspp-builds.git] / doc / language.texi
index 3b667618df9cede109df34bc6d1da15c08454933..d71ecc8a3868d73a4f27d9fa3bdc70edbd6b5cb7 100644 (file)
@@ -1,4 +1,4 @@
-@node Language, Expressions, Invocation, Top
+@node Language
 @chapter The PSPP language
 @cindex language, PSPP
 @cindex PSPP, language
@@ -24,7 +24,7 @@ Later chapters will describe individual commands in detail.
 * BNF::                         How command syntax is described.
 @end menu
 
-@node Tokens, Commands, Language, Language
+@node Tokens
 @section Tokens
 @cindex language, lexical analysis
 @cindex language, tokens
@@ -159,7 +159,7 @@ doing so.  Throughout the remainder of this manual we will assume that
 the default setting is in effect.
 @end table
 
-@node Commands, Types of Commands, Tokens, Language
+@node Commands
 @section Forming commands of tokens
 
 @cindex PSPP, command structure
@@ -198,7 +198,7 @@ in a line is ignored and causes that line to begin a new command,
 which allows for visual indentation of a command without that command
 being considered part of the previous command.
 
-@node Types of Commands, Order of Commands, Commands, Language
+@node Types of Commands
 @section Types of Commands
 
 Commands in PSPP are divided roughly into six categories:
@@ -241,7 +241,7 @@ more general sense, a @dfn{procedure} is any command that causes the
 active file (the data) to be read.
 @end table
 
-@node Order of Commands, Missing Observations, Types of Commands, Language
+@node Order of Commands
 @section Order of Commands
 @cindex commands, ordering
 @cindex order of commands
@@ -339,7 +339,7 @@ Cause a transition to the procedure state.
 @end itemize
 @end table
 
-@node Missing Observations, Variables, Order of Commands, Language
+@node Missing Observations
 @section Handling missing observations
 @cindex missing values
 @cindex values, missing
@@ -369,7 +369,7 @@ For more information on missing values, see the following sections:
 documentation on individual procedures for information on how they
 handle missing values.
 
-@node Variables, Files, Missing Observations, Language
+@node Variables
 @section Variables
 @cindex variables
 @cindex dictionary
@@ -387,7 +387,7 @@ Some details of variables are described in the sections below.
 * Scratch Variables::           Variables deleted by procedures.
 @end menu
 
-@node Attributes, System Variables, Variables, Variables
+@node Attributes
 @subsection Attributes of Variables
 @cindex variables, attributes of
 @cindex attributes of variables
@@ -478,7 +478,7 @@ Similar to print format, but used by the @cmd{WRITE} command
 (@pxref{WRITE}).
 @end table
 
-@node System Variables, Sets of Variables, Attributes, Variables
+@node System Variables
 @subsection Variables Automatically Defined by PSPP
 @cindex system variables
 @cindex variables, system
@@ -522,10 +522,10 @@ was read, in format F20.
 Page width, in characters, in format F3.
 @end table
 
-@node Sets of Variables, Input and Output Formats, System Variables, Variables
+@node Sets of Variables
 @subsection Lists of variable names
-@cindex TO convention
-@cindex convention, TO
+@cindex @code{TO} convention
+@cindex convention, @code{TO}
 
 To refer to a set of variables, list their names one after another.
 Optionally, their names may be separated by commas.  To include a
@@ -551,9 +551,10 @@ After a set of variables has been defined with @cmd{DATA LIST} or
 another command with this method, the same set can be referenced on
 later commands using the same syntax.
 
-@node Input and Output Formats, Scratch Variables, Sets of Variables, Variables
+@node Input and Output Formats
 @subsection Input and Output Formats
 
+@cindex formats
 An @dfn{input format} describes how to interpret the contents of an
 input field as a number or a string.  It might specify that the field
 contains an ordinary decimal number, a time or date, a number in binary
@@ -601,6 +602,7 @@ by PSPP.
 @node Basic Numeric Formats
 @subsubsection Basic Numeric Formats
 
+@cindex numeric formats
 The basic numeric formats are used for input and output of real numbers
 in standard or scientific notation.  The following table shows an
 example of how each format displays positive and negative numbers with
@@ -608,7 +610,7 @@ the default decimal point setting:
 
 @float
 @multitable {DOLLAR10.2} {@code{@tie{}$3,141.59}} {@code{-$3,141.59}}
-@headitem Format @tab @code{@tie{}}3141.59   @tab -3141.59
+@headitem Format @tab @code{@tie{}3141.59}   @tab @code{-3141.59}
 @item F8.2       @tab @code{@tie{}3141.59}   @tab @code{-3141.59}
 @item COMMA9.2   @tab @code{@tie{}3,141.59}  @tab @code{-3,141.59}
 @item DOT9.2     @tab @code{@tie{}3.141,59}  @tab @code{-3.141,59}
@@ -793,6 +795,7 @@ special values are output as asterisks.
 @node Custom Currency Formats
 @subsubsection Custom Currency Formats
 
+@cindex currency formats
 The custom currency formats are closely related to the basic numeric
 formats, but they allow users to customize the output format.  The
 SET command configures custom currency formats, using the syntax
@@ -845,7 +848,7 @@ SET CCE="-.Rp'. ..". /* Indonesia Rupiah.
 
 @float
 @multitable {CCD13.2} {@code{@tie{}@tie{}USD 3,145.59}} {@code{(USD 3,145.59)}}
-@headitem Format @tab @code{@tie{}}3145.59         @tab -3145.59
+@headitem Format @tab @code{@tie{}3145.59}         @tab @code{-3145.59}
 @item CCA12.2 @tab @code{@tie{}EUR3,145.59}        @tab @code{EUR3,145.59-}
 @item CCB14.2 @tab @code{@tie{}@tie{}USD 3,145.59} @tab @code{(USD 3,145.59)}
 @item CCC11.2 @tab @code{@tie{}R$3.145,59}         @tab @code{-R$3.145,59}
@@ -943,6 +946,8 @@ machines is output as positive.
 @node Binary and Hexadecimal Numeric Formats
 @subsubsection Binary and Hexadecimal Numeric Formats
 
+@cindex binary formats
+@cindex hexadecimal formats
 The binary and hexadecimal formats are primarily designed for
 compatibility with existing machine formats, not for human readability.
 All of them therefore have a F format as default output format.  Some of
@@ -1034,6 +1039,8 @@ with half the given width.
 @node Time and Date Formats
 @subsubsection Time and Date Formats
 
+@cindex time formats
+@cindex date formats
 In PSPP, a @dfn{time} is an interval.  The time formats translate
 between human-friendly descriptions of time intervals and PSPP's
 internal representation of time intervals, which is simply the number of
@@ -1212,6 +1219,7 @@ The default output format is the same as the input format.
 @node String Formats
 @subsubsection String Formats
 
+@cindex string formats
 The A and AHEX formats are the only ones that may be assigned to string
 variables.  Neither format allows any decimal places.
 
@@ -1224,9 +1232,10 @@ as hex digit pairs.  On output, hex digits are output in uppercase; on
 input, uppercase and lowercase are both accepted.  The default output
 format is A format with half the input width.
 
-@node Scratch Variables,  , Input and Output Formats, Variables
+@node Scratch Variables
 @subsection Scratch Variables
 
+@cindex scratch variables
 Most of the time, variables don't retain their values between cases.
 Instead, either they're being read from a data file or the active file,
 in which case they assume the value read, or, if created with