Ratfor

Ratfor

Ratfor (short for RATional FORtran) is a programming language implemented as a preprocessor for Fortran 66. It provided modern control structures, unavailable in Fortran 66, to replace GOTOs and statement numbers.

Ratfor was designed and implemented by Brian Kernighan at
Bell Telephone Laboratories in 1974, and described in Software-Practice & Experience in 1975. It was used in the book "Software Tools" (Kernighan and Plauger, 1976).

Ratfor provides the following kinds of flow-control statements, described by Kernighan and Plauger as "shamelessly stolen from the language C, developed for the UNIX operating system by D.M. Ritchie" ("Software Tools", p. 318):

* statement grouping with braces
* if-else, while, for, do, repeat-until, break, next
* "free-form" statements, i.e., not constrained by Fortran format rules
* <, >, >=, ... in place of .LT., .GT., .GE., ...
* include
* # comments

The version of Ratfor in Software Tools is itself written in Ratfor, as are the sample programs, and inasmuch as its own translation to Fortran is available, it can be ported to any Fortran system, and surely has been. Ratfor source code files end in .r or .rat.

External links

* [http://sepwww.stanford.edu/software/ratfor.html Ratfor]
* [http://hopl.murdoch.edu.au/showlanguage.prx?exp=692&language=RATFOR History of Programming Languages: Ratfor]

ee also

* Ratfiv


Wikimedia Foundation. 2010.

Игры ⚽ Нужна курсовая?

Look at other dictionaries:

  • Ratfor — Saltar a navegación, búsqueda RATFOR (abreviación de RATional FORtran, o Fortran Racional) es un lenguaje de programación implementado como un preprocesador para Fortran 66. Proveía al programador de estructuras de datos modernas (no presentes en …   Wikipedia Español

  • RATFOR — Rational FORTRAN Programmiersprachendialekt …   Acronyms

  • RATFOR — Rational FORTRAN Programmiersprachendialekt …   Acronyms von A bis Z

  • Ratfiv — is an enhanced version of the Ratfor programming language, a preprocessor for Fortran designed to give it C like capabilities. Fortran was widely used for scientific programming but had very basic control flow primitives ( do and goto ) and no… …   Wikipedia

  • Brian Kernighan — Brian Wilson Kernighan (pronEng|ˈkɛrnɪhæn, the g is silent), (born 1942, Toronto, Ontario, Canada) is a computer scientist who worked at Bell Labs alongside Unix creators Ken Thompson and Dennis Ritchie and contributed greatly to Unix and its… …   Wikipedia

  • Fortran — Infobox programming language name = Fortran caption = The Fortran Automatic Coding System for the IBM 704 (October 15, 1956), the first Programmer s Reference Manual for Fortran paradigm = multi paradigm: procedural, imperative, structured,… …   Wikipedia

  • Yacc — The computer program yacc is a parser generator developed by Stephen C. Johnson at AT T for the Unix operating system. The name is an acronym for Yet Another Compiler Compiler. It generates a parser (the part of a compiler that tries to make… …   Wikipedia

  • List of computing topics — Originally, the word computing was synonymous with counting and calculating, and the science and technology of mathematical calculations. Today, computing means using computers and other computing machines. It includes their operation and usage,… …   Wikipedia

  • List of programming languages — Programming language lists Alphabetical Categorical Chronological Generational The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in… …   Wikipedia

  • Generational list of programming languages — Here, a genealogy of programming languages is shown. Languages are categorized under the ancestor language with the strongest influence. Of course, any such categorization has a large arbitrary element, since programming languages often… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”