拖延症晚期(:з」∠),一边看官方文档一边做笔记
官方文档ISO/IEC 1539 : 1991 (E):ftp://ftp.nag.co.uk/sc22wg5/N001-N1100/N692.pdf
Section 1 : Overview
stmt for statement
attr for attribute
decl for declaration
spec for specifier
def for definition
int for integer
desc for descriptor
arg for argument
op for operator
这些是在文档中所用缩写
is introduces a syntactic class definition
or introduces a syntactic class alternative
[ ] encloses an optional item
[ ] … encloses an optionally repeated item which may occur zero or more times
■ continues a syntax rule
文档所用语
Section 2 : Fortran terms and concepts
R201 executable-program is program-unit
[program-unit] …
An executable-program must contain exactly one main-program program-unit.R202 program-unit is main-program
or external-subprogram
or module
or block-dataR1101 main-program is [ program-stmt ]
[ specification-part ]
[ execution-part ]
[ internal-subprogram-part ]
end-program-stmt
R203 external-subprogram is function-subprogram
or subroutine-subprogram
R1215 function-subprogram is function-stmt
[ specification-part ]
[ execution-part ]
[ internal-subprogram-part ]
end-function-stmt
R1219 subroutine-subprogram is subroutine-stmt
[ specification-part ]
[ execution-part ]
[ internal-subprogram-part ]
end-subroutine-stmt
R1104 module is module-stmt
[ specification-part ]
[ module-subprogram-part ]
end-module-stmt
R1110 block-data is block-data-stmt
[ specification-part ]
end-block-data-stmt
R204 specification-part is [ use-stmt ] …
[ implicit-part ]
[ declaration-construct ] …
R205 implicit-part is [ implicit-part-stmt ] …
implicit-stmt
R206 implicit-part-stmt is implicit-stmt
or parameter-stmt
or format-stmt
or entry-stmt
R207 declaration-construct is derived-type-def
or interface-block
or type-declaration-stmt
or specification-stmt

本文档介绍了Fortran 90的程序单元概念,包括可执行程序、主程序、外部子程序、模块和数据块子程序。详细阐述了各个程序单元的组成部分,如声明部分、执行部分和内部子程序。通过语法规则,解释了如何构建这些程序单元,并强调了主程序的特性及其执行流程。
最低0.47元/天 解锁文章
1867

被折叠的 条评论
为什么被折叠?



