Browse Prior Art Database

APL Merge Technique

IP.com Disclosure Number: IPCOM000085882D
Original Publication Date: 1976-Jun-01
Included in the Prior Art Database: 2005-Mar-03
Document File: 2 page(s) / 35K

Publishing Venue

IBM

Related People

Palumbo, RT: AUTHOR

Abstract

Described is a technique called FNINSERT that merges statements from one APL function into another APL function automatically.

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 77% of the total text.

Page 1 of 2

APL Merge Technique

Described is a technique called FNINSERT that merges statements from one APL function into another APL function automatically.

When coding APL functions, it is sometimes desirable to use statements from an existing function. Currently the programmer does this by manually typing the desired code, line by line, on an APL terminal. FNINSERT performs this operation automatically. For example, statements 4 through 7 from function FNB can be merged after statement 1 of function FNA. For illustrative purposes, this example contains comment statements only.

Before execution of the FNINSERT Function:

(Image Omitted)

After Execution of FNINSERT:

The function FNB remains unchanged and FNA includes statements from FNB as shown.

(Image Omitted)

The FNINSERT function requires APL.SV since it uses APL system functions, [] CR (canonical representation) and [] FX (function establishment).

Process Description 1. The two functions involved are first converted into character matrices by the [] CR system function. 2. The FNB character matrix is reconstructed to include only the rows that are to be merged into FNA. 3. The width (number of columns) of the matrices are made equal by catenating a matrix of blanks to the narrower of the two. 4. FNA is split into two matrices at the point where the copied statements are to be merged (call these matrices the top of FNA and the bottom of FNA). 5. The three matrices, the top of FNA, the reconstructed FNB, and the bottom of...