📄 struct.1
字号:
.\" SCCSID: @(#)struct.1 8.1 9/11/90.TH struct 1 VAX "" Unsupported.SH Namestruct \- structure FORTRAN programs.SH Syntax.B struct[ \fIoptions\fP ] ...\fIfile\fP.SH DescriptionThe .PN structcommand translates the FORTRAN program specified by.I file(standard input default)into a .PN ratfor program.Wherever possible, .PN ratfor control constructsreplace the original FORTRAN.Statement numbers appear only where still necessary.Cosmetic changes are made, including changing Hollerith stringsinto quoted stringsand relational operators into symbols (for example, ".GT." into ">").The output is appropriately indented..SH Options.TP.B \-sInput is accepted in standard format, that iscomments are specified by a c, C, or * in column 1, and continuation linesare specified by a nonzero, nonblank character in column 6.Normally input is in the form accepted by .MS f77 1 ..TP.B \-iDo not turn computed goto statements intoswitches..Pn ( ratfor does not turn switches backinto computed goto statements.).TP.B \-aTurn sequences of else ifs into a. Pn non- ratfor switch of the form.IP.nf.ta 5 7\f(CWswitch { case pred1: code case pred2: code case pred3: code default: code }\fP.fi.DT.IPThe case predicates are tested in order;the code appropriate to only one case is executed.This generalized form of switch statement does notoccur in .PN ratfor ..TP.B \-bGenerate goto's instead of multilevel break statements..TP.B \-nGenerate goto's instead of multilevel next statements..TP.BI \-t nMakethe nonzero integer.I nthe lowest valued label in the output program(default 10)..TP.BI \-c nIncrement successive labelsin the output programby the nonzero integer.I n(default 1)..TP.BI \-e nIf .I nis 0 (default),place code within a loop only if it canlead to an iteration of the loop.If.I nis nonzero,admit a small code segments to a loopif otherwise the loop would have exits to several places including the segment,and the segment can be reached only from the loop.`Small' is close to, but not equal to, thenumber of statements in the code segment.Values of n under 10 are suggested..SH RestrictionsStruct knows FORTRAN 66 syntax, but not full FORTRAN 77..brIf an input FORTRAN program contains identifiers whichare reserved words in .PN ratfor , the structuredversion of the programwill not be a valid .PN ratfor program..brThe labels generated cannot go above 32767..brIf you get a goto without a target, try.B \-e ..SH Files/tmp/struct*.br/usr/lib/struct/*.SH See Alsof77(1)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -