Browse Prior Art Database

Definition Language for Command Syntaxes

IP.com Disclosure Number: IPCOM000040201D
Original Publication Date: 1987-Oct-01
Included in the Prior Art Database: 2005-Feb-02
Document File: 1 page(s) / 12K

Publishing Venue

IBM

Related People

Calafut, GJ: AUTHOR [+7]

Abstract

It is sometimes desirable to have a computer understand instructions in a number of different languages. The following describes an improved system for providing this facility. The system includes a definition language for command syntaxes which has a number of statements that define the syntax of commands and provides definitions of the translations desired. For example, if you want to write a new command called MYCMD and you wanted French users to be able to use the command using French, then you could code the following syntax statements: 1) :CMD MMYCMD MYCMD MONCMD 3 :; 2) :OPR FCN(FN) :; 3) :OPR FCN(FT) :; 4) :OPT KWL( ) :; Statement 1 indicates that you have a command called MYCMD which has a French equivalent of MONCMD.

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

Page 1 of 1

Definition Language for Command Syntaxes

It is sometimes desirable to have a computer understand instructions in a number of different languages. The following describes an improved system for providing this facility. The system includes a definition language for command syntaxes which has a number of statements that define the syntax of commands and provides definitions of the translations desired. For example, if you want to write a new command called MYCMD and you wanted French users to be able to use the command using French, then you could code the following syntax statements: 1) :CMD MMYCMD MYCMD MONCMD 3 :;

2) :OPR FCN(FN) :;

3) :OPR FCN(FT) :;

4) :OPT KWL(<DISK 2 DISQUE 4> <PRINT 2 IMPRIMER 4>)

:; Statement 1 indicates that you have a command called MYCMD which has a French equivalent of MONCMD. The 3 means that the command can be abbreviated with three characters. MMYCMD is a unique identifier only used by the parser program to identify the command. Statements 2 and 3 define the operands for the command. The first operand FN is any filename, and the second operand FT is any filetype. The fourth statement defines the options. This command has two possible options DISK or PRINT. The numerals 2 mean that DISK and PRINT can be abbreviated with two letters. DISQUE and IMPRIMER are the French translations of DISK and PRINT. The numerals 4 mean that the French words can be abbreviated with 4 characters. After the definition language for the command syntaxes is...