Browse Prior Art Database

Transformation of Word Delimiters

IP.com Disclosure Number: IPCOM000078433D
Original Publication Date: 1973-Jan-01
Included in the Prior Art Database: 2005-Feb-25
Document File: 3 page(s) / 23K

Publishing Venue

IBM

Related People

Reynolds, SW: AUTHOR

Abstract

A function is described which transforms the word delimiters belonging to a vector file to word delimiters which do not belong to the file. Its APL/360 representation is presented.

This text was extracted from a PDF file.
At least one non-text object (such as an image or picture) has been suppressed.
This is the abbreviated version, containing approximately 54% of the total text.

Page 1 of 3

Transformation of Word Delimiters

A function is described which transforms the word delimiters belonging to a vector file to word delimiters which do not belong to the file. Its APL/360 representation is presented.

The file (F) is a logically contiguous global homogeneous vector of either characters or numbers. In order to Process this file, known algorithms require the manual specification of the components of a vector (FD), namely, it is a vector of positive integers which represent the length of each and every word in the file. (See Reynolds, S. W., "Two File Processing Algorithms: Index and Next", IBM Technical Disclosure Bulletin, Vol. 14, No. 12, May 1972, pp. 3561- 3562.) The vector (FD) is useful in processing words in a file, but it does not itself belong to the file. Normally, in interactive processing, the words in the file are delimited by blanks, carriage returns, and/or other characters, or numbers, which belong to the file. If these delimiters are known, then (FD) may be computed rather than being specified manually.

The dyadic function called DIMENSION has, as its left argument, either a 0 or a 1. It is 0 if the file F is to be compressed, i.e., if the delimiters are to be removed prior to processing the file. If, for instance, A is the vector of delimiters, the file is compressed by respecification of the file, i.e.,

(Image Omitted)

(FD must be calculated prior to file compression.)

If the file is to be processed as is, the left argument must be a 1. Notice that if the left argument is a 1, then a 1 is inserted in the result at all positions where the specified delimiters occur in the file (F).

The right argument is a vector of delimiters which belong to the...