Browse Prior Art Database

Command Processor for Word Processing Applications

IP.com Disclosure Number: IPCOM000039800D
Original Publication Date: 1987-Aug-01
Included in the Prior Art Database: 2005-Feb-01
Document File: 3 page(s) / 14K

Publishing Venue

IBM

Related People

Borgendale, KW: AUTHOR

Abstract

The command list (CLIST) processor provides a command set extension mechanism for a word processor whereby the basic commands and the existing CLIST commands, composite editing/formatting functions can be implemented. The CLIST processor is used to process system and user profiles and to implement command sequences which are not supported as default editor commands. Architecturally, the CLIST process provides a command set extension mechanism. Using the CLIST language, the basic commands and the existing CLIST "commands," composite editing/formatting functions can be implemented by CLIST.

This text was extracted from a PDF file.
This is the abbreviated version, containing approximately 64% of the total text.

Page 1 of 3

Command Processor for Word Processing Applications

The command list (CLIST) processor provides a command set extension mechanism for a word processor whereby the basic commands and the existing CLIST commands, composite editing/formatting functions can be implemented. The CLIST processor is used to process system and user profiles and to implement command sequences which are not supported as default editor commands. Architecturally, the CLIST process provides a command set extension mechanism. Using the CLIST language, the basic commands and the existing CLIST "commands," composite editing/formatting functions can be implemented by CLIST. Typical examples are: Get Document/Text Unit

Include Document/Text Unit

Auto Spelling Aid The CLIST processor is used to process the system and user profiles, and to implement command sequences that are not supported as Editor commands. The CLIST processor is designed to support program command extensions. The following items are supported: Parameter substitution ( %1 )

Comment delimiters ( /* Comment */ )

IF statement

IF expr THEN

statement

ELSE statement

Compound statement

DO

statement

statement

END

Arithmetical expressions

- Addition

- Subtraction

- Multiplication

- Division (integer)

- And

- Or

String expressions

- Concatenation operator ( )

- Blank operator (Concatenate with blank)

- Substring operation (SUBSTR)

- Uppercase operation (UPPER)

Comparison operators ( = = J O J= O= )

While loop construct

DO WHILE expr

statement

END

Compound expressions (with parenthesis ordering)

Editor session information (INFO)

Access to global variables (EXT)

Special return code variable (%RC)

1

Page 2 of 3

CLIST termination with return code (EXIT) CLISTs are contained within a special document. There is one system CLIST, and one CLIST document per user. Individual CLISTs within the document are started with a LABEL which is an Editor-defined private control. The CLIST is ended by an EXIT statement, by finding another LABEL control or by reaching the end ofthe page. Individual commands in the CLIST are terminated by any line ending control or by a semicolon (;). The CLIST with the LABEL equal to the USERID is run when Editor is invoked. In the example below, the OLBL: CNAMEJ is the control that shows when a label is encountered in the text. The rest of the text lines are terminated. A sample command extension. OLBL: SFJ /* SF n - Scroll forward n screens */

if %1 = '' then %1 = 1 /* Handle default scroll amount */

do while %1 J 0 /* Loop for all pages */

down /* Down with no operand = screen */

i...