Ratfor
From Just Solve the File Format Problem
(Difference between revisions)
(Created page with "{{FormatInfo |formattype=Languages |subcat=Programming Languages |extensions={{ext|ratfor}}, {{ext|r}} |released=1974<ref>Wikipedia:Ratfor#History, uncited</ref> or 1976<r...") |
(Fixed typo) |
||
(One intermediate revision by one user not shown) | |||
Line 5: | Line 5: | ||
|released=1974<ref>[[Wikipedia:Ratfor#History]], uncited</ref> or 1976<ref>According to Wikipedia, the book <i>Software tools</i>, by Kernighan, Brian W and Plauger, P. J., 1976, Addison-Wesley; https://archive.org/details/softwaretools00kern; this listing goes on Wikipedia's word that the book actually descibes it, although it can presumably be verified by reading it</ref> | |released=1974<ref>[[Wikipedia:Ratfor#History]], uncited</ref> or 1976<ref>According to Wikipedia, the book <i>Software tools</i>, by Kernighan, Brian W and Plauger, P. J., 1976, Addison-Wesley; https://archive.org/details/softwaretools00kern; this listing goes on Wikipedia's word that the book actually descibes it, although it can presumably be verified by reading it</ref> | ||
}} | }} | ||
− | |||
'''Ratfor''' ('''Rational Fortran''') is a programming language that is essentially a mix of [[C]] and [[FORTRAN]]. It "compiles" to the latter. | '''Ratfor''' ('''Rational Fortran''') is a programming language that is essentially a mix of [[C]] and [[FORTRAN]]. It "compiles" to the latter. | ||
== Extensions == | == Extensions == | ||
− | Ratfor seems to have | + | Ratfor seems to have been labled with the extensions ".ratfor"<ref name="ndt">https://pubs.usgs.gov/of/1981/0666/report.pdf, page 42 (45 of PDF)</ref> and ".r"<ref>https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24357</ref>. |
== Example == | == Example == |
Latest revision as of 23:11, 25 May 2019
Ratfor (Rational Fortran) is a programming language that is essentially a mix of C and FORTRAN. It "compiles" to the latter.
Contents |
[edit] Extensions
Ratfor seems to have been labled with the extensions ".ratfor"[3] and ".r"[4].
[edit] Example
This example was taken from the 1980 United States Geological Survey implementation of the Network-Day Tape format[3]. It has not been tested before inclusion here.
subroutine prbuf(idata) # # (A long documentation comment - stripped from the example in the Formats Wiki) # integer*2 idata(1) # DATA RECORD - INPUT # SET TO HOLD 16000 BITS OF TAPE INPUT RECORD # integer*2 i integer*2 j integer*2 ibuff(80) # do i = 1,25 { call getlin(idata, i, ibuff) write(6, 10) (ibuff(j), j=1,80) 10 format(1x, 80a1) } # return # end
[edit] Links
- Linux Ratfor, for Linux
- RATFOR user's guide version 2.0: The manual to AMES Ratfor, a dialect
- Wikipedia:Ratfor
An Internet Archive full-text search for "Ratfor" produces many results.
[edit] References
- ↑ Wikipedia:Ratfor#History, uncited
- ↑ According to Wikipedia, the book Software tools, by Kernighan, Brian W and Plauger, P. J., 1976, Addison-Wesley; https://archive.org/details/softwaretools00kern; this listing goes on Wikipedia's word that the book actually descibes it, although it can presumably be verified by reading it
- ↑ 3.0 3.1 https://pubs.usgs.gov/of/1981/0666/report.pdf, page 42 (45 of PDF)
- ↑ https://gcc.gnu.org/bugzilla/show_bug.cgi?id=24357