ANSI-ISO-IEC-1539-1-1997-R2003.pdf
《ANSI-ISO-IEC-1539-1-1997-R2003.pdf》由会员分享,可在线阅读,更多相关《ANSI-ISO-IEC-1539-1-1997-R2003.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) Copyright American National
5、Standards Institute Provided by IHS under license with ANSI Licensee=IHS Employees/1111111001, User=OConnor, Maurice Not for Resale, 04/29/2007 07:00:17 MDTNo reproduction or networking permitted without license from IHS -,-,- ISO/IEC 1539- 1 1997(E) Contents . Foreword x111 . xiv Introduction . 1 1
6、 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 Assumed syntax rules . Syntax conventions and ch
7、aracteristics . 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 level syntax 2.2.2 Main program . . 2.2 Prog
8、ram 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 All rights reserved . Unless otherwise speci
9、fied. 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-121 I Genve 20 Switzerland Printed in Switzerl
10、and Copyright American National Standards Institute Provided by IHS under license with ANSI Licensee=IHS Employees/1111111001, User=OConnor, Maurice Not for Resale, 04/29/2007 07:00:17 MDTNo reproduction or networking permitted without license from IHS -,-,- O ISO/IEC ISO/IEC 1539- 1 1997(E) 2.4 Dat
11、a 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.5.6 Association 2.5.7 Intrinsic . 2.5.9 Sequence 2.5.1 Name and designator . 2.5.8 Operato
12、r . . 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 Names . 3.2.2 Constants . 3.2.3 Operators . 3.2.4 Statement labels 3.2.5 Delimiters . 3.3.1
13、 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 to objects 4.3 Intrinsic data types 4.3.1 Numeric types . . . . . . . . . . . . . . . . .
14、 . . 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 v
15、alues . . . . . . . . . Derived-type operations 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 Copyright American National Standards Institute Pro
16、vided by IHS under license with ANSI Licensee=IHS Employees/1111111001, User=OConnor, Maurice Not for Resale, 04/29/2007 07:00:17 MDTNo reproduction or networking permitted without license from IHS -,-,- ISO/IEC 1539- 1 11 997(E) 0 iSO/IEC 4.5 Construction of array values 45 5 Data object declaratio
17、ns and specifications . 5.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 .
18、5.2.7 POINTER statement 5.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 .
19、6.1.2 Structure components . 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 Intrinsi
20、c operations . 7.1.3 Defined 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 Re
21、lational intrinsic operations 7.2.4 Logical intrinsic operations 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 7
22、6 79 79 82 82 85 85 85 89 90 90 92 93 96 101 101 102 102 104 104 104 iv Copyright American National Standards Institute Provided by IHS under license with ANSI Licensee=IHS Employees/1111111001, User=OConnor, Maurice Not for Resale, 04/29/2007 07:00:17 MDTNo reproduction or networking permitted with
23、out license from IHS -,-,- O ISO/IEC ISO/IEC 1539- 1 : 1997(E) 8 9 105 7.4 Precedence of operators 105 7.5 Assignment 107 107 110 1 1 1 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
24、121 8.1 Executable 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 .
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSI ISO IEC 1539 1997 R2003
链接地址:https://www.31doc.com/p-3732932.html