Patent US4729096A successfully refreshed from Google Patents.
← Back to Patent Explorer
US4729096A Expired / Lapsed US ⏱️ 0.0 years remaining

Method and apparatus for generating a translator program for a compiler/interpreter and for testing the resulting translator program

Assignee: International Business Machines Corp
•
Filing: 1984-10-24
•
Granted: 1988-03-01
•
Expires: 2004-10-24
📄 Original PDF 🌐 Google Patents 🔄 Sync Now

Abstract

Abstract A translator writing system develops a translator program capable of transforming a user's source code into object code. The language of the source code is summarized in a unique form, namely, a Backus-Nauer Form (BNF). This BNF form of the source code is utilized by the translator writing system to transform the source code into object code. The BNF form takes into account the attribute specifications associated with the language of the source code and the interaction of the attribute specifications in the grammar of the language of the source code. The translator writing system includes a valid testcase generator for testing the developed translator program utilizing every possible correct program statement in the language of the user's source code. The translator writing system further includes an incorrect, invalid testcase generator for testing the developed translator program utilizing every possible incorrect, invalid program statement in the language of the user's source code. As a result, the amount of effort required to test the developed translator program has been significantly reduced.

Inventors

  • 👤 Lawrence E. Larson

Bibliographic Details

Application Number —
Jurisdiction US
Data Source google_patents
Last Synchronized 2026-10-26 07:23
CPC Classifications
G; G06; G06F; G06F11/00; G06F11/36; G06F11/3668; G06F11/3672; G06F11/3684; G06F8/00; G06F8/30; G06F8/40; G06F8/41

Claims Analysis

Total Claims: 13
Claim 1
Independent Claim 133 words
A translator writing system for developing a translator program that transforms a user's source code into object code, comprising: means for receiving a program into said translator writing system, said program representing a summary of the pertinent characteristics associated with the user's source code; and developing means responsive to said program for developing said translator program, said developing means including testing means for testing the developed translator program, the testing means including a data base comprising a plurality of statements, the plurality of statements being examples of all correct uses of program statements in said users source code, the testing including an interrogation of said developed translator program using each statement of said plurality of statements thereby producing results, whereby analysis of said results reveals if errors exist within said developed translator program.
Claim 2
Dependent Claim 133 words
A translator writing system for developing a translator program that transforms a user's source code into object code, comprising: means for receiving a program into said translator writing system, said program representing a summary of the pertinent characteristics associated with the user's source code; and developing means responsive to said program for developing said translator program, said developing means including testing means for testing the developed translator program, the testing means including a data base comprising a plurality of statements, the plurality of statements being examples of all correct uses of program statements in said users source code, the testing including an interrogation of said developed translator program using each statement of said plurality of statements thereby producing results, whereby analysis of said results reveals if errors exist within said developed translator program.
Claim 3
Dependent Claim 62 words
The translator writing system of claim 1, wherein said summary of the pertinent characteristics of the user's source code represented by said program includes a set of attribute specifications describing the language of said source code, said source code having a grammar, said summary further including means for reconciling the interaction of said attribute specifications in said grammar of said source code.
Claim 4
Dependent Claim 31 words
The translator writing system of claim 1 wherein the plurality of statements of said data base further represent examples of all incorrect uses of program statements in said user's source code.
Claim 5
Dependent Claim 138 words
A translator writing system for developing a completed translator program that transforms a user's source code into object code, comprising: means for introducing a program into said translator writing system, said program being a summary of the pertinent characteristics of the user's source code; developing means responsive to said program for developing said completed translator program, said developing measn further including, a correct testcase generator means for testing said translator program utilizing a plurality of correct program statement corresponding to the user's source code, and an incorrect testcase generator means for testing said translator program utilizing a plurality of incorrect program statements corresponding to the user's source code, the plurality of correct program statements and the plurality of incorrect program statements being examples of all correct and incorrect uses of program statements, respectively, in the user's source code.
Claim 6
Dependent Claim 138 words
A translator writing system for developing a completed translator program that transforms a user's source code into object code, comprising: means for introducing a program into said translator writing system, said program being a summary of the pertinent characteristics of the user's source code; developing means responsive to said program for developing said completed translator program, said developing measn further including, a correct testcase generator means for testing said translator program utilizing a plurality of correct program statement corresponding to the user's source code, and an incorrect testcase generator means for testing said translator program utilizing a plurality of incorrect program statements corresponding to the user's source code, the plurality of correct program statements and the plurality of incorrect program statements being examples of all correct and incorrect uses of program statements, respectively, in the user's source code.
Claim 7
Independent Claim 97 words
A method of developing and testing a completed translator program, comprising the steps of: developing a summary program summarizing the pertinent characteristics associated with a user's source code, said source code being a language and including a plurality of program statements; entering said summary program into a translator writing system, said translator writing system developing said completed translator program by converting said summary program into said completed translator program; and testing said completed translator program by interrogating said translator program with examples of all correct uses of program statements in the language of said user's source code.
Claim 8
Independent Claim 97 words
A method of developing and testing a completed translator program, comprising the steps of: developing a summary program summarizing the pertinent characteristics associated with a user's source code, said source code being a language and including a plurality of program statements; entering said summary program into a translator writing system, said translator writing system developing said completed translator program by converting said summary program into said completed translator program; and testing said completed translator program by interrogating said translator program with examples of all correct uses of program statements in the language of said user's source code.
Claim 9
Dependent Claim 35 words
The method of claim 5, wherein the testing step further comprises the step of: interrogating said translator program with examples of all incorrect uses of program statements in the language of said user's source code.
Claim 10
Dependent Claim 152 words
A translator writing system for developing a completed translator program that transforms a user's source code into object code, comprising: means for receiving a program into said translator writing system, said program representing a summary of the pertinent characteristics of the user's source code; and developing means responsive to said program for developing said completed translator program, said developing means including testing means for testing the completely developed translator program, the testing means including a data base comprising a plurality of statements, the plurality of statements being examples of all incorrect uses of program statements of said user's source code, the testing including an interrogation of said developed translator program using each stastement of said plurality of statements thereby producing a plurality of error messages, whereby analysis of said error messages as to number and type reveals if all expected ones of said error messages were produced in response to said interogation.
Claim 11
Dependent Claim 152 words
A translator writing system for developing a completed translator program that transforms a user's source code into object code, comprising: means for receiving a program into said translator writing system, said program representing a summary of the pertinent characteristics of the user's source code; and developing means responsive to said program for developing said completed translator program, said developing means including testing means for testing the completely developed translator program, the testing means including a data base comprising a plurality of statements, the plurality of statements being examples of all incorrect uses of program statements of said user's source code, the testing including an interrogation of said developed translator program using each stastement of said plurality of statements thereby producing a plurality of error messages, whereby analysis of said error messages as to number and type reveals if all expected ones of said error messages were produced in response to said interogation.
Claim 12
Independent Claim 111 words
A method of completely developing and testing a translator program, comprising the steps of: developing a summary program summarizing the pertinent characteristics of a user's source code, said source code being a language and including a pluraity of program statements; entering said summary program into a translator writing system, said translator writing system completely developing said trnaslator program by converting said summary program into said translator program; and testing said translator program by interrogating said translator program with examples of all incorrect uses of program statements in the language of said user's source code thereby producing a plurality of error messages and analyzing said error messages as to number and type.
Claim 13
Independent Claim 111 words
A method of completely developing and testing a translator program, comprising the steps of: developing a summary program summarizing the pertinent characteristics of a user's source code, said source code being a language and including a pluraity of program statements; entering said summary program into a translator writing system, said translator writing system completely developing said trnaslator program by converting said summary program into said translator program; and testing said translator program by interrogating said translator program with examples of all incorrect uses of program statements in the language of said user's source code thereby producing a plurality of error messages and analyzing said error messages as to number and type.

References Cited (Backward Citations)

GB1479122A Cited
GB1510240A Cited

USPTO Annuity & Maintenance Windows

Annuity Stage Window Opens Payment Deadline Surcharge Period Until Estimated Fee Status
3.5 Years (Year 4) 1991-03-01 1991-08-31 1992-03-01 $2000.00 Window Closed / Lapsed
7.5 Years (Year 8) 1995-03-01 1995-08-31 1996-03-01 $3760.00 Window Closed / Lapsed
11.5 Years (Year 12) 1999-03-01 1999-08-31 2000-03-01 $7700.00 Window Closed / Lapsed

Assigned Categories & Tags

No categories assigned to this patent yet.

Assign Category Tag