Skip to main content

10. Miscellaneous Topics

10.1 The LIST-request​

The LIST-request provides a means for the user to inspect system data of interest to him. The user can determine the contents of the directory, the source or parsed form of any data description in the system, and the mode and connection status of any open file or port.

The LIST operator has a single operand, which can have any of several forms. The action of the operator is to output a list of values on the Datalanguage output port.

To output a list of pathnames, the operand used is '%ALL'. When '%ALL' appears alone, all pathnames in the directory are listed. When '%ALL' appears after the last ident in a directory pathname, the full pathnames of all nodes subordinate to the named node are listed.

To output one or more source descriptions, the operand '.%SOURCE' is used. '.%SOURCE' is preceded with one of (a) '%ALL', (b) '%OPEN', or (c) the ident of an open outermost container. The output is either (a) all descriptions, (b) all open descriptions, or (c) a particular open description.

To output a parsed description, the operand '.%DESC' is used ('%DESCRIPTION' is also accepted). This operand is preceded either with (a) '%OPEN', or (b) the ident of an open outermost container.

Examples:

Let P be the ident of an open PORT. Let A.B.C be a directory pathname.

LIST %ALL
LIST A.B.C.%ALL
LIST %OPEN
LIST %ALL.%SOURCE
LIST %OPEN.%SOURCE
LIST P.%SOURCE
LIST %OPEN.%DESC
LIST P.%DESC

Note that 'LIST A.B.C.%SOURCE' is not legal - '.%SOURCE' must be preceded with the ident of an open container, not a pathname. A similar restriction applies to '.%DESC'.

10.2 Constants in Datalanguage​

A constant of type STRING can be included in a Datalanguage request by enclosing it in single quotes:

'ABC'

A single quote is included in a constant by preceding it with a double quote:

'FATHER"'S'

Likewise, a double quote is included by preceding it with a double quote:

'JOHN SAID ""HELLO""'

Such constants can be used on the right of comparison operators and of assignment operators which reference strings.

Eventually, Datalanguage will contain facilities for the inclusion of constants of all datatypes; such constants are simply a special case of the Datalanguage expression and will be permitted wherever such expressions are permitted.

10.3 Character Set​

Internally, Version 0/9 of the Datacomputer software operates in 7-bit ASCII characters. Its output to the ARPANET is converted to 8-bit ASCII. On input from the ARPANET, it expects 8-bit characters, which it converts to 7-bit characters.

To convert from 7- to 8-bit characters, a '0' bit is prefixed. To convert from 8- to 7-bit characters, the high-order bit is checked. If the high-order bit is a '0', the bit is discarded and the character is accepted as a 7-bit character. If the high-order bit is a '1', then the character is discarded.

(In the following discussion, as elsewhere in this memo, all references to numerical character codes are in decimal).

The remainder of this section discusses treatment of codes 0 through 127, when they appear in Datalanguage requests.

In general, printing characters are acceptable in requests, while control characters are not. There are some exceptions, which are detailed below. The printing characters are codes 32-126. The control characters are codes 0-31 and 127.

Certain control characters are accepted:

  • Tab(9) is accepted freely in requests. It functions as a separator (explained below).
  • EOL(31), meaning end-of-line, is accepted in requests, functioning both as a separator and an activator (a). EOL has a special meaning in data, and should not be introduced into STRING constants(***).
  • Control-L(12) is an activator and a high-level request delimiter. It terminates the test of any request being processed when it is encounter in the input stream. It is useful in Datacomputer-user program synchronization.
  • Control-Z(26) means end-of-session when encountered in Datalanguage. It has the properties of control-L, and in addition, causes the Datacomputer to execute an end-of-session procedure, which results in closing the Datalanguage connections, closing any open files or ports, etc. The effect is equivalent to a [LOGOUT(which] does not exist yet).
  • The two-character sequence <carriage return(13), line feed(10)> is equivalent to EOL (and is translated to EOL on input from the network). The reverse sequence, as well as either character alone, is treated simply as other control characters (ignored).

All other control characters are ignored.

The printing characters are further divided into four groups: special characters, uppercase letters, lower case letters, and digits (the membership of these groups is defined in section 11).

Corresponding upper and lower case letters are equivalent in requests, except with quoted strings.

Certain special characters have a lexical function, which is either break or separator. A break character terminates the current lexical item and returned itself as the next item. A separator character terminates the current item but does not begin a new item (i.e., its only function is to separate items). Multiple separators are equivalent to a single separator. A separator can always be inserted before or after a break character, without altering the meaning of the request.

The separators are tab(9), space(32), and end-of-line(31).

The break characters are left parenthesis(40), right parenthesis(41), equals(61), semicolon(59), period(46), comma(44), quote(39), and slash(47).

(a) An activator character causes the Datacomputer to process whatever has been received since the previous activator or the beginning of the request. The meaning of a request is independent of the presence/absence of activators. However, a request will not be executed until an activator beyond the end of the request is received.

While Version 0/9 defines (carriage return, linefeed) in terms of EOL, network users should not think in terms of sending EOL's to the Datacomputer over the network. EOL is not part of the network ASCII character set, and has no definite permanent place in Datacomputer implementation plans.

10.4 Comments​

Comments can be included in Datalanguage requests. A comment is begun with the two-character sequence '/*', and ended with the two-character sequence '*/'. Since slash is a break character, a comment does cause a lexical break; its overall effect is that of a separator.

10.5 Reserved Identifiers​

Certain identifiers are reserved in Datalanguage, and should not be used to name containers or directory nodes. These are:

AND
APPEND
AT
CLOSE
CONNECT
CREATE
DELETE
DISCONNECT
END
EQ
FILE
FOR
GE
GT
LE
LIST
LT
NODE
NE
NOT
OPEN
OR
PORT
READ
STR
STRUCT
TO
WITH
WRITE

More reserved identifiers will be added in Version 0/10.