×

APL-to-Fortran translators

  • US 5,142,681 A
  • Filed: 08/31/1990
  • Issued: 08/25/1992
  • Est. Priority Date: 07/07/1986
  • Status: Expired due to Fees
First Claim
Patent Images

1. A machine-implemented method of translating to a target computer language an application programmed in a source computer language wherein said source language is characterized by(A) having arrays as primitive objects thereof,(B) primitive functions which are applicable to arrays,(C) primitive functions in which internal representations are inferred from use, and(D) primitive functions which are applied differently in different cases depending upon differences in the rank, type, and shape information applicable to the arrays, the method comprising the steps of:

  • (a) providing, for a subject primitive function of said source language which is applied differently in different cases, an archetype which includes(i) plural portions of code, which represent code in said target language, said portions being associated with corresponding cases in which the subject primitive function may be used, and(ii) conditions for determining which of said plural portions of archetype code are to be used for a given occurrence of the subject primitive function in a given application program in said source language with at least some of the conditions being dependent on array shapes,(b) storing said archetype in a machine memory, and(c) translating said subject primitive function from said source to said target language using said stored archetype, by selecting at least one of said portions of code therefrom in accordance with said conditions applicable to said given application program, when said given application program in said source language is input to a computer as the object of translation, to produce a translated application program in said target language.

View all claims
  • 0 Assignments
Timeline View
Assignment View
    ×
    ×