ANSI INCITS ISO IEC 1539-1-1997 Information technology - Programming languages - Fortran - Part 1 Base language (INCITS Adoption).pdf
《ANSI INCITS ISO IEC 1539-1-1997 Information technology - Programming languages - Fortran - Part 1 Base language (INCITS Adoption).pdf》由会员分享,可在线阅读,更多相关《ANSI INCITS ISO IEC 1539-1-1997 Information technology - Programming languages - Fortran - Part 1 Base language (INCITS Adoption).pdf(374页珍藏版)》请在麦多课文档分享上搜索。
1、I NTE RN AT1 ON AL STANDARD ISO/IEC 1539-1 First edition 1997-12-15 Information technology - Programming languages - Fortran - Part 1: Base language Technologies de linformation - Langages de programmation - Fortran - Partie 1: Langage de base Adopted by INCITS (InterNational Committee for Informati
2、on Technology Standards) as an American National Standard. Date of ANSI Approval: 6/9/98 Published by American National Standards Institute, 25 West 43rd Street, New York, New York 10036 Copyright 2002 by Information Technology Industry Council (ITI). All rights reserved. These materials are subject
3、 to copyright claims of International Standardization Organization (ISO), International Eledrotechnical Commission (IEC), American National Standards Institute (ANSI), and Information Technology Industry Council (ITI). Not for resale. No part of this publication may be reproduced in any form, includ
4、ing an electronic retrieval system, without the prior written permission of ITI. All requests pertaining to this standard should be submitted to ITI, 1250 Eye Street NW, Washington, DC 20005. Printed in the United States of America Reference number ISO/IEC 1539-1:1997(E) ISO/IEC 1539- 1 1997(E) Cont
5、ents . Foreword x111 . xiv Introduction . 1 1 Overview . 1.1 1.2 1.3 1.4 1.5 1.6 1.7 1.8 1.9 Scope Processor Inclusions Exclusions . Conformance . 1.5.1 Fortran 90 compatibility . . 1.5.2 FORTRAN 77 compatibility Notation used in this standard 1.6.1 Informative notes . 1.6.2 Syntax rules . 1.6.3 Ass
6、umed syntax rules . Syntax conventions and characteristics . 1.6.4 1.6.5 Text conventions Deleted and obsolescent features 1.7.1 Nature of deleted features . 1.7.2 Nature of obsolescent features Modules . Normativereferences 1 1 1 1 2 3 3 4 4 4 5 5 6 6 6 6 6 7 2 Fortran terms and concepts 9 2.1 High
7、 level syntax 2.2.2 Main program . . 2.2 Program unit concepts . 2.2.1 Program . 2.2.3 Procedure . 2.2.4 Module . 2.3 Executionconcepts 2.3.1 Executable/nonexecutable statements . 2.3.2 Statement order 2.3.3 The END statement . 2.3.4 Execution sequence . 9 11 12 12 12 13 13 13 13 14 14 O ISOIEC 1997
8、 All rights reserved . Unless otherwise specified. no part of this publication may be reproduced or utilized in any form or by any means. electronic or mechanical. including photocopying and micro- film. without permission in writing from the publisher . ISO/IEC Copyright Office Case postale 56 CH-1
9、21 I Genve 20 Switzerland Printed in Switzerland O ISO/IEC ISO/IEC 1539- 1 1997(E) 2.4 Data concepts 2.4.1 Datatype 2.4.3 Data entity 2.4.2 Datavalue . 2.4.4 Scalar . 2.4.5 Array . 2.4.6 Pointer 2.4.7 Storage 2.5 Fundamental terms 2.5.2 Keyword 2.5.3 Declaration 2.5.4 Definition . 2.5.5 Reference 2.
10、5.6 Association 2.5.7 Intrinsic . 2.5.9 Sequence 2.5.1 Name and designator . 2.5.8 Operator . . 3 Characters. lexical tokens. and source form . 3.1 Processor character set . 3.1.1 Letters 3.1.2 Digits . 3.1.3 Underscore 3.1.4 Special characters . 3.1.5 Other characters 3.2 Low-level syntax . 3.2.1 N
11、ames . 3.2.2 Constants . 3.2.3 Operators . 3.2.4 Statement labels 3.2.5 Delimiters . 3.3.1 Free source form 3.3.2 Fixed source form . . . 3.3 Sourceform . 3.4 Including source text 4 Intrinsic and derived data types . 4.1 The concept of data type 4.1.3 Operations 4.2 Relationship of types and values
12、 to objects 4.3 Intrinsic data types 4.3.1 Numeric types . 4.3.2 Nonnumeric types 4.4 Derived types . 4.4.1 -type definition . . 4.4.3 Derived-type values . . 4.1.1 Set of values . 4.1.2 Constants . 4.4.2 4.4.4 4.4.5 Determination of derived types Construction of derived-type values . Derived-type o
13、perations and assignment 15 15 15 15 17 17 17 17 17 18 18 18 18 18 18 19 19 19 21 21 21 21 21 22 22 22 22 23 23 24 24 24 25 27 27 29 29 29 30 30 30 31 31 35 37 38 43 44 44 45 iii ISO/IEC 1539- 1 11 997(E) 0 iSO/IEC 4.5 Construction of array values 45 5 Data object declarations and specifications . 5
14、.1 Type declaration statements 5.1.1 Type specifiers . 5.1.2 Attributes . 5.2 Attribute specification statements 5.2.1 INTENT statement 5.2.2 OPTIONAL statement . 5.2.3 Accessibility statements . 5.2.4 SAVE statement 5.2.5 DIMENSION statement . 5.2.6 ALLOCATABLE statement . 5.2.7 POINTER statement 5
15、.2.8 TARGET statement . 5.2.9 PARAMETER statement . 5.2.10 DATA statement 5.3 IMPLICIT statement 5.4 NAMELIST statement . 5.5 Storage association of data objects . 5.5.1 EQUIVALENCE statement . 5.5.2 COMMON statement . . 6 Useofdataobjects . 6.1 Scalars . 6.1.1 Substrings . 6.1.2 Structure component
16、s . 6.2 Arrays . 6.2.1 Whole arrays . 6.2.2 Array elements and array sections 6.3.1 ALLOCATE statement . 6.3.2 NULLIFY statement . 6.3.3 DEALLOCATE statement 6.3 Dynamic association . 7 Expressions and assignment . 7.1 Expressions 7.1.1 Form of an expression . 7.1.2 Intrinsic operations . 7.1.3 Defi
17、ned operations 7.1.4 Data type, type parameters, and shape of an expression 7.1.5 Conformability rules for elemental operations 7.1.6 Scalar and array expressions 7.1.7 Evaluation of operations . 7.2.1 Numeric intrinsic operations 7.2.3 Relational intrinsic operations 7.2.4 Logical intrinsic operati
18、ons 7.2 Interpretation of intrinsic operations . 7.2.2 Character intrinsic operation . 7.3 Interpretation of defined operations 7.3.1 Unary defined operation . 47 47 50 52 57 58 58 58 59 59 60 60 60 60 61 63 65 66 66 68 73 74 74 75 75 76 76 79 79 82 82 85 85 85 89 90 90 92 93 96 101 101 102 102 104
19、104 104 iv O ISO/IEC ISO/IEC 1539- 1 : 1997(E) 8 9 105 7.4 Precedence of operators 105 7.5 Assignment 107 107 110 111 7.5.3 114 7.5.4 FORALL 7.3.2 Binary defined operation 7.5.1 Assignment statement. 7.5.2 Pointer assignment . Masked array assignment - WHERE . Executioncontrol 121 121 8.1 Executable
20、 constructs containing blocks 121 8.1.1 Rules governing blocks. . 8.1.2 IFconstruct 122 123 8.1.3 CASE construct . 8.1.4 Doconstruct 126 130 8.2 Branching 130 8.2.1 Statement labels 131 8.2.2 GO TO statement. 131 8.2.3 Computed GO TO statement . 131 8.2.4 Arithmetic IF statement . 131 8.3 CONTINUE s
21、tatement . 131 8.4 STOP statement. . Input/output statements 133 9.1 Records 133 133 9.1.1 Formatted record . 133 9.1.2 Unformatted record. 134 9.1.3 Endfile record 134 9.2 Files . 134 9.2.1 External files. 137 9.2.2 Internal files . . 138 9.3 File connection. 138 9.3.1 Unit existence 138 9.3.2 Conn
22、ection of a file to a unit. . 9.3.3 Preconnection 139 139 9.3.4 The OPEN statement. . 143 9.3.5 The CLOSE statement . . 144 9.4 Data transfer statements. 144 9.4.1 Control information list. . 148 9.4.2 Data transfer input/output list . 149 9.4.3 Error, end-of-record, and end-of-file conditions . 9.4
23、.4 Execution of a data transfer input/output statement. . 150 153 9.4.5 Printing of formatted records . 154 9.4.6 Termination of data transfer statements 154 9.5 File positioning statements . 154 9.5.1 BACKSPACE statement. . 155 9.5.2 ENDFILE statement. 155 9.5.3 REWIND statement . 9.6 File inquiry
24、155 156 160 160 160 . 9.6.1 Inquiry specifiers . 9.6.2 Restrictions on inquiry specifiers. 9.6.3 Inquire by output list. . . Restrictions on function references and list items. . 9.7 V ISO/IEC 1539- 1 : 1997(E) O ISO/IEC 160 9.8 Restriction on input/output statements. 10 Input/output editing . 161 1
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIINCITSISOIEC153911997INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESFORTRANPART1BASELANGUAGEINCITSADOPTIONPDF

链接地址:http://www.mydoc123.com/p-436191.html