BS ISO IEC 6522-1995 Information technology - Programming languages - PL I general purpose subset《信息技术 编程语言 PL I通用子集》.pdf
《BS ISO IEC 6522-1995 Information technology - Programming languages - PL I general purpose subset《信息技术 编程语言 PL I通用子集》.pdf》由会员分享,可在线阅读,更多相关《BS ISO IEC 6522-1995 Information technology - Programming languages - PL I general purpose subset《信息技术 编程语言 PL I通用子集》.pdf(465页珍藏版)》请在麦多课文档分享上搜索。
1、BSI BS*ISO/IEC 6522 92 D i1624667 0475085 305 BS ISO/IEC 6522 : 1992 Implementation of ISO/IEC 6522 : 1992 Information technology - Programming languages - PL/I general purpose subset UDC 681.3.01, : 519.682 : 800.92 ES1 BS+ISO/IEC 6522 92 = 1624669 O475086 241 BS ISO/IEC 6522 : 1992 Amd. No. Commit
2、tees responsible for this British Standard Date Text affected The preparation of this British Standard was entrusted to %chnical Committee IST/5, Programming languages, upon which the following bodies were represented: British Computer Society Electricity Association Hoskyns Group plc IBM United Kin
3、gdom Ltd. Information Systems Committee of the Universities Funding Council International Computers Limited National Computer Users Forum National Computer Centre Ltd. Rutherford Appleton Laboratory SEMA Group Systems Ltd. This British Standard, having been prepared under the direction of the Infoma
4、tion Systems Technology Assembly, was published under the authority of the Standards Board and comes into effect on 15 April 1995 0 BSI 1995 Amendments issued since publication The following BSI references relate to the work on this standard: Committee reference IST/5 Draft for comment 89/63580 DC I
5、SBN O 580 23879 2 BSI BS*ISO/IEC 6522 92 W 1624669 0475087 188 BS ISO/EC 6522 : 1992 National foreword This British Standard reproduces verbatim ISO/IEC 6522 : 1992 and implements it as the UK national standard. This British Standard is published under the direction of the Information Systems Techno
6、logy Assembly whose Technical Committee IST5 has the responsibility to: - aid enquirers to understand the text; - present to the responsible international committee any enquiries on interpretation, or proposals for change, and keep UK interests informed; - monitor related international and European
7、developments and promulgate them in the UK. NOTE. International and European Standards, as well as overseas standards, are available from Customer Services, MI, 389 Chiswick High Road, London WA 4AL. Compliance with a British Standard does not of itself confer immunity from legal obligations. I BSI
8、BS*ISO/IEC b522 92 W Lb24bb 0475088 014 W I NTERNATI O NAL STANDARD ISO/IEC 6522 Second edition 1992-1 1-1 5 Information technology - Programming languages - PL/I general purpose subset Technologies de 1 information - Langages de programmation - Sous-ensemble PL/ i pour usage gnral Reference number
9、ISO/IEC 6522:1992E) BSI BS*ISO/IEC b522 92 Lb24bb9 0475089 T50 ISO/IEC 6522:1992 (E) Contents . 1 . Scopeand Overviews 1 1.2 Referenced Publications 1 1.4 An Informal Guide to the PL/I Definition : . 3 1.4.1 ASummaryofPL/I . 3 1.4.2 The Form of the Definition . 4 10 1.1 Scope 1 1.3 GoalsandRationale
10、 . 2 . 1.4.3 Summary of Chapter Structure . 6 1.4.4 Introduction to the Metalanguage 1.4.4.1 Tree Concepts . 10 1.4.4.2 Syntaxes . 11 1.4.4.3 AlgonthmConcepts 12 1.5.1.1 Rejection of Programs . 15 1.5 Relationships between an Implementation and this Definition 14 1.5.1 Flexibiiities of Interpretatio
11、n . 15 1.5.1.2 Quantitative Restrictions . 15 1.5.1.3 Addressing Restrictions 15 1 -5.1.4 Operating Environment 16 1.5.1.5 Character Sets . 16 1.5.1.6 Expression Evaluation . 16 1.5.1.7 Interrupts and Assignment . 17 1.5.1.8 Input/Output . 17 1.5.1.9 On-units . 17 1 S.2 Implementation-defined Featur
12、es 18 1.6 TheMetalanguage . 20 1.6.1 Trees . 21 1.6.1.1 Tree Definitions . 21 1.6.1.2 Node Objects . 22 1.6.1.2.1 Unique-names . 23 1.6.1.2.2 Types 23 1.6.1.3 Node Notation 23 1.6.1.4 Tree Notation . 24 1.6.1.4.1 Enumerated-Trees 24 1.6.1.4.2 Forms . 25 1.6.1.5 Tree Copies . 25 1.6.2 ProductionRules
13、 25 1.6.2.1 Production Rules and Syntaxes 25 1.6.2.2 Complete and Partial Trees . 26 1.6.2.3 Syntactic-expressions and Syntactic-units 28 1.6.2.4 Use of the Production Rules 28 1.6.2.4.1 Subnode-type Sequence with respect to a Syntax and Category-name 29 1.6.2.4.2 Subnode-type Sequence with respect
14、to a Syntactic-expression 29 1.6.3 Operations . 30 1.6.3.1 Nature of an Operation 30 Z ISO/IEC 1992 All rights reserved . No part of this publication may be reproduced or utilized in any form or by any means. electronic or mechanical. including photocopying and microfilm. without permission in writi
15、ng from the publisher . International Organization for Standardization Ca5e postale 56 - CH- I21 1 Genve 20 Switzerland Printed in Switzerland II BSI BS*ISO/IEC b522 92 D Lb24669 0475090 772 D ISOIIEC 6522:1992 (E) 1.6.3.2 Nondeterministic Operations 31 1.6.3.3 Format of an Operation . 31 1.6.3.4 In
16、structions . 32 1.6.3.5 Convert 34 1.6.3.6 Additional Notational Conventions . 34 1.6.3.7 Arithmetic 34 1.6.3.7.1 Properties of Arithmetic in the Metalanguage . 34 1.6.3.7.2 Properties of Arithmetic in PL/I . 35 1.6.4 TheProcessor . 36 1.6.5 Mechanization of the Metalanguage 37 1.7 Initialization of
17、 the Machine-state . 39 1.7.1 The Machine-state . 39 1.7.2 Initialization 39 1.7.3 The Top-level Operations 39 1.7.3.1 Define-program 39 1.7.3.2 Translation-phase 40 1.7.3.3 Interpretation-phase 40 2 . Concretesyntax 41 2.1 Introduction 41 2.2 The Intent of this Definition 41 2.2.1 Concrete and Abst
18、ract Syntaxes . 41 2.3 Organization of the Concrete Syntax . 41 2.4 The High-level Syntax of PL/I . 42 2.4.1 Translationunit . 42 2.4.2 Package . 42 2.4.3 Procedure 42 2.4.4 Unit 42 2.4.5 Executable Units 42 2.4.6 If Statement 43 2.4.7 DoGroup 43 2.4.8 Select Group 43 2.4.9 BeginBlock 43 2.4.10 OnUn
19、it 44 2.4.1 O . 1 Condition Prefixes 44 2.4.10.2 Statement Name Prefixes . 44 2.4.1 1 Data Declaration . 44 2.4.1 1.1 Dimension Attribute and Dimension Suffix 44 2.4.11.2 Attributes . 45 2.4.1 1.3 Data Attributes . 45 2.4.1 1.4 Environment and Options . 46 2.4.11.5 Initial . 46 2.4.1 2 The Package S
20、tatement 46 2.4.1 3 The Procedure Statement . 46 2.4.14 The Begin Statement 47 2.4.1 5 The Do Statement 47 2.4.16 The Select Statement 47 2.4.17 The End Statement 47 2.4.18 Flow of Control Statements . 48 2.4.18.1 The Call and Return Statements 48 2.4.18.2 The Go To Statement 48 2.4.18.3 The Leave S
21、tatement 48 2.4.18.4 The Null Statement 48 2.4.18.5 The Revert and Signal Statements . 48 iii BSI BS*ISO/IEC 6522 92 = 1624669 0475091 609 ISO/IEC 6522:1992 (E) 2.4.18.6 The Stop Statement 48 2.4.19 Storage Control Statements . 48 2.4.20.1 The Open and Close Statements 49 2.4.20.3 Stream I/O 50 2.4.
22、20.3.1 Stream Input Specification . 50 2.4.20.3.2 Stream Output Specification . 50 2.4.20.3.3 Format Specification Lists and the Format Statement 50 2.4.21 Expressions 51 2.4.22 EnquiryFunctions 52 2.5 The Low-level Syntax of PL/I 57 2.5.1 PL/I Text 57 2.5.2 Comment 57 2.5.3 Identifier . 57 2.5.4 Ar
23、ithmetic Constant 57 2.5.5 String Constants and Pictures . 58 2.5.6 Include 58 2.6 Charactersets 59 2.6.1 Language Character Set . 60 2.6.1.1 Letters and Digits 60 2.6.1.2 Special Characters 61 2.6.2 Data Character Set . 61 2.6.3 Secondary Case Characters in Numeric and Bit Values . 61 2.7 Abbreviat
24、ions 62 2.4.20 Input/Output Statements . 49 2.4.20.2 Record 1/0 49 3 . Abstract Syntax 63 3.1 Introduction 63 3.2 Abstract Syntax Rules 63 3.2.1 Program . 63 3.2.2 Package . 63 3.2.3 Procedure 63 3.2.4 Declaration . 64 3.2.5 Variable . 64 3.2.6 Data-description . 64 3.2.7 Data-type 65 3.2.8 Named-co
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BSISOIEC65221995INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESPLIGENERALPURPOSESUBSET 信息技术 编程 语言 PLI 通用 子集

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