Dictionary Home » Computer Desktop Encyclopedia » fourth-generation language

fourth-generation language

fourth-generation language definition - computer

Also known as a 4GL, it is a computer language that is more advanced than traditional high-level programming languages. For example, in dBASE, the command List displays all the records in a data file. In second- and third-generation languages, instructions would have to be written to read each record, test for end of file, place each item of data on screen and go back and repeat the operation until there are no more records to process.

First-generation languages are machine languages; second-generation are machine dependent assembly languages; third-generation are high-level programming languages, such as FORTRAN, COBOL, BASIC, Pascal, and C.

Although many languages are called fourth-generation languages, they are actually a mix of third and fourth. For example, the List command in dBASE is a fourth-generation command, but applications programmed in dBASE are third-generation. The following command examples show the difference between third and fourth-generation syntax to open a customer file and display all names and addresses on screen.

    dBASE 3GL                dBASE 4GL
    use customer             use customer
    do while .not. eof()     list name, address
      ? name, address
      skip
    enddo


Query language and report writers are also fourth-generation languages. Any computer language with English-like commands that does not require traditional input-process-output logic falls into this category.

Many fourth-generation language functions are also built into graphical interfaces and activated by clicking and dragging. The commands are embedded into menus and buttons that are selected in an appropriate sequence.



Computer Desktop Encyclopedia THIS DEFINITION IS FOR PERSONAL USE ONLY
All other reproduction is strictly prohibited without permission from the publisher.
Copyright © 1981-2009 by Computer Language Company Inc. All rights reserved.

Comments
Improve this definition.
Do you have more to add? Share your linguistic knowledge or observation.
/Register to save your comments.