Fortran 90 笔记(一)

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

拖延症晚期(:з」∠),一边看官方文档一边做笔记

官方文档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-data

R1101 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
        

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值