拖延症晚期(:з」∠),一边看官方文档一边做笔记
官方文档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
or parameter-stmt
or format-stmt