⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 m0

📁 unix v7是最后一个广泛发布的研究型UNIX版本
💻
字号:
.....ND "January 1, 1977".RP....TR 55.....TM 76-1273-10 39199 39199-11.TLRATFOR \(em A Preprocessor for a Rational Fortran.AU "MH 2C-518" 6021Brian W. Kernighan.AI.MH.OKstructured programming, control flow, programming.AB.ps 9.nr PS 9.vs 11.nr VS 11.in 0.ll.PPAlthough Fortran is not a pleasantlanguage to use,it does have the advantages of universalityand (usually) relative efficiency.TheRatfor language attempts to concealthe main deficiencies of Fortranwhile retaining its desirable qualities,by providingdecent control flow statements:.IP "\ \ \ \(bu"statement grouping.IP "\ \ \ \(bu".UL if-elseand.UL switchfor decision-making.IP "\ \ \ \(bu".UL while ,.UL for ,.UL do ,and.UL repeat-untilfor looping.IP "\ \ \ \(bu".UL breakand.UL nextfor controlling loop exits.LPand some ``syntactic sugar'':.IP "\ \ \ \(bu"free form input (multiple statements/line, automatic continuation).IP "\ \ \ \(bu"unobtrusive comment convention.IP "\ \ \ \(bu"translation of >, >=, etc., into .GT., .GE., etc..IP "\ \ \ \(bu".UL return (expression)statement for functions.IP "\ \ \ \(bu".UL definestatement for symbolic parameters.IP "\ \ \ \(bu".UL includestatement for including source files.LPRatforis implemented as apreprocessor which translates this languageinto Fortran..PPOnce the control flow and cosmetic deficiencies of Fortranare hidden,the resulting language is remarkably pleasant to use.Ratfor programs aremarkedly easier to write, and to read,and thus easier to debug, maintain and modifythan their Fortran equivalents..PPIt is readily possible to write Ratfor programs which are portable to other env ironments.Ratforis written in itselfin this way,so it is also portable;versions of Ratfor are now running on at least two dozen different types of computersat over five hundred locations..PPThis paper discusses design criteriafor a Fortran preprocessor,the Ratforlanguageand its implementation,and user experience..AE.FSThis paper is a revised and expanded version of oe published in.ulSoftware\(emPractice and Experience,October 1975.The Ratfor described here is the one in use on.UC UNIXand.UC GCOSat Bell Laboratories, Murray Hill, N. J..FE.CS 12 1 13 0 0 10

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -