Recent Articles



































Dartmouth BASIC



         


Dartmouth BASIC is the original version of the BASIC programming language. It is so-called because it was designed and implemented at Dartmouth College.

It was designed by John Kemeny and Thomas Kurtz as part of the Dartmouth timesharing system (DTSS) and was the one of the first programming languages intended to be used interactively.

Several versions were produced over the years, all implemented as compilers by undergraduate teams working under the direction of the designers. The very first version was produced before the time-sharing system was ready. Known as CardBASIC, it was intended for the standard card-reader based batch processing system. The first interactive version was made available to general users in June, 1964; the second in October, 1964; the third in 1966; the fourth in 1969; the fifth in 1970; the sixth in 1971; and the seventh in 1979.

The first interactive version implemented the following statement types, taking some of its operators and keywords from FORTRAN II and some from ALGOL 60.

[Top]

Statements

It also implemented floating-point numeric variables and arithmetic. Variable names were limited to A to Z, A0 to A9, B0 to B9, ..., Z0 to Z9, giving a maximum of 286 possible distinct variables. Array names were restricted to A to Z only. Arrays did not need to be defined but in the absence of a DIM statement, they defaulted to 10 elements subscripted from 1 to 10.

[Top]

Expressions

[Top]

Functions

[Top]

Editing

In addition DTSS implemented the world's first Integrated Design Environment: a command-based system implementing the following commands.

There was no need to log out. If users did not respond, they were logged out after a short delay.

These commands were often believed to be part of the BASIC language by users but in fact they were part of the time sharing system and were also used when preparing Algol or FORTRAN programs via the DTSS terminals.

Any line typed in by the user, and beginning with a line number, was added to the program, replacing any previously stored line with the same number; anything else was immediately compiled and executed. Lines which consisted solely of a line number weren't stored but did remove any previously stored line with the same number. This method of editing was necessary because of the use of teletypes as the terminal units for the Dartmouth Timesharing system.

Work on the compiler and the operating system was done concurrently and so the first BASIC programs were run in batch mode as part of the development process during early 1964. However on May 1 1964 at 4 am, John Kemeny and John McGeachie ran the first BASIC programs to be executed successfully from terminals by the DTSS system.

The second version only made minimal changes, adding the semicolon operator to the PRINT statement and zero subscripts to arrays.

For the third version, the INPUT statement was introduced along with the powerful MAT statements for matrix manipulation and the RESTORE statement for use with READ/DATA. Development continued with the introduction of text manipulation and variables, also known as string variables, for version 4 and true file handling in version 5. Version 6 saw the introduction of separately compilable procedures with parameters. In 1976, Steve Garland added structured programming features to create Dartmouth SBASIC, a precompiler which produced version 6 output (and which formed the basis of ANSI BASIC). In 1979 Kemeny and Kurtz released an ANSI BASIC compiler as the seventh and final version of BASIC at Dartmouth before leaving the college to concentrate on the further development of ANSI BASIC in the form of True BASIC.

[Top]

References


This article is a stub. You can help BambooWeb by .





  View Live Article   This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License