BS ISO IEC 10206-1991 Information technology - Programming languages - Extended Pascal《信息技术 编程语言 扩展PASCAL语言》.pdf
《BS ISO IEC 10206-1991 Information technology - Programming languages - Extended Pascal《信息技术 编程语言 扩展PASCAL语言》.pdf》由会员分享,可在线阅读,更多相关《BS ISO IEC 10206-1991 Information technology - Programming languages - Extended Pascal《信息技术 编程语言 扩展PASCAL语言》.pdf(200页珍藏版)》请在麦多课文档分享上搜索。
1、BRITISH STANDARD BS ISO/IEC 10206:1991 Implementation of ISO/IEC 10206:1991 Information technology Programming languages ExtendedPascal UDC 681.3.06:519.682:800.92BSISO/IEC10206:1991 This British Standard, having been prepared under the directionof the Information Systems Technology Standards Policy
2、 Committee, was publishedunder the authority ofthe Standards Board and comesinto effect on 30September1991 BSI 05-2000 The following BSI references relate to the work on this standard: Committee reference IST/5 Draft for comment 90/60810 DC ISBN 0 580 20040 X Committees responsible for this British
3、Standard The preparation of this British Standard was entrusted by the Information Systems Technology Standards Policy Committee (IST/-) to Technical Committee IST/5, upon which the following bodies were represented: British APL Association British Computer Society British Gas plc Department of Trad
4、e and Industry (National Physical Laboratory) EEA (the Association of Electronics, Telecommunications and Business Equipment Industries) Electricity Industry in United Kingdom GAMBICA (BEAMA Ltd.) HM Treasury (Central Computer and Telecommunications Agency) Information Technology Users Standards Ass
5、ociation Institution of Electrical Engineers Loughborough University of Technology National Computing Centre Ltd. Polytechnics and Colleges Computer Committee (PCCC) Science and Engineering Research Council (Rutherford Appleton Laboratory) University of Edinburgh University of Liverpool University o
6、f London User Standards Forum for Information Technology (Institute of Data Processing Management) Amendments issued since publication Amd. No. Date CommentsBSISO/IEC10206:1991 BSI 05-2000 i Contents Page Committees responsible Inside front cover National foreword ii Foreword v Text of ISO/IEC 10206
7、 1BSISO/IEC10206:1991 ii BSI 05-2000 National foreword This British Standard reproduces verbatim ISO/IEC10206:1991 and implements it as the UK national standard. This British Standard is published under the direction of the Information Systems Technology Standards Policy Committee whose Technical Co
8、mmittee IST/5 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 developments and promulgate them in t
9、he UK. NOTEInternational and European Standards, as well as overseas standards, are available from BSI Sales Department, BSI, Linford Wood, Milton Keynes, MK146LE. A British Standard does not purport to include all the necessary provisions of a contract. Users of British Standards are responsible fo
10、r their correct application. Compliance with a British Standard does not of itself confer immunity from legal obligations. Summary of pages This document comprises a front cover, an inside front cover, pagesi andii, theISO/IEC title page, pagesii tovi, pages1 to189 and a back cover. This standard ha
11、s been updated (see copyright date) and may have had amendments incorporated. This will be indicated in the amendment table on the inside front cover.ISO/IEC10206:1991 (E) ii BSI 05-2000 Contents Page Foreword v Introduction 1 1 Scope 5 2 Normative reference 5 3 Definitions 6 3.1 Dynamic-violation 6
12、 3.2 Error 6 3.3 Extension 6 3.4 Implementation-defined 6 3.5 Implementation-dependent 6 3.6 Processor 6 4 Definitional conventions 6 5 Compliance 7 5.1 Processors 7 5.2 Programs 8 6 Requirements 9 6.1 Lexical tokens 9 6.1.1 General 9 6.1.2 Special-symbols 9 6.1.3 Identifiers 9 6.1.4 Remote-directiv
13、es 10 6.1.5 Interface-directives 10 6.1.6 Implementation-directives 10 6.1.7 Numbers 10 6.1.8 Labels 11 6.1.9 Character-strings 11 6.1.10 Token separators 12 6.1.11 Lexical alternatives 12 6.2 Blocks, scopes, activations, and states 13 6.2.1 Blocks 13 6.2.2 Scopes 13 6.2.3 Activations 15 6.2.4 State
14、s 17 6.3 Constants 18 6.3.1 General 18 6.3.2 Example of a constant-definition-part 18 6.4 Types and schemata 19 6.4.1 Type-definitions 19 6.4.2 Simple-types 20 6.4.3 Structured-types 24 6.4.4 Pointer-types 31 6.4.5 Compatible types 31 6.4.6 Assignment-compatibility 32 6.4.7 Schema-definitions 32 6.4
15、.8 Discriminated-schemata 34 6.4.9 Type-inquiry 34 6.4.10 Example of a type-definition-part 34 6.5 Declarations and denotations of variables 36 6.5.1 Variable-declarations 36 6.5.2 Entire-variables 37ISO/IEC10206:1991 (E) BSI 05-2000 iii Page 6.5.3 Component-variables 37 6.5.4 Identified-variables 3
16、8 6.5.5 Buffer-variables 39 6.5.6 Substring-variables 39 6.6 Initial states 39 6.7 Procedure and function declarations 40 6.7.1 Procedure-declarations 40 6.7.2 Function-declarations 42 6.7.3 Parameters 45 6.7.4 Required procedures and functions 52 6.7.5 Required procedures 52 6.7.6 Required function
17、s 59 6.8 Expressions 64 6.8.1 General 64 6.8.2 Constant-expressions 65 6.8.3 Operators 65 6.8.4 Schema-discriminants 69 6.8.5 Function-designators 69 6.8.6 Function-accesses 70 6.8.7 Structured-value-constructors 71 6.8.8 Constant-accesses 73 6.9 Statements 75 6.9.1 General 75 6.9.2 Simple-statement
18、s 75 6.9.3 Structured-statements 76 6.9.4 Threats 82 6.10 Input and output 82 6.10.1 The procedure read 82 6.10.2 The procedure readln 84 6.10.3 The procedure write 84 6.10.4 The procedure writeln 87 6.10.5 The procedure page 87 6.11 Modules 88 6.11.1 Module-declarations 88 6.11.2 Export-part 89 6.1
19、1.3 Import-specifications 90 6.11.4 Required interfaces 91 6.11.5 Example of a module 92 6.11.6 Examples of program-components that are module-declarations 94 6.11.7 Example of exporting a range of enumerated-type values 99 6.12 Main-program-declarations 99 6.13 Programs 101 Annex A (informative) Co
20、llected syntax 103 Annex B (informative) Incompatibilities with Pascal standards 154 Annex C (informative) Required identifiers 155 Annex D (informative) Errors and dynamic-violations 156 Annex E (informative) Implementation-defined features 163 Annex F (informative) Implementation-dependent feature
21、s 165ISO/IEC10206:1991 (E) iv BSI 05-2000 Page Annex G (informative) Bibliography 166 Index 167 Table 1 Metalanguage symbols 7 Table 2 Arithmetic functions 59 Table 3 Dyadic arithmetic operations 66 Table 4 Monadic arithmetic operations 66 Table 5 Set operations 67 Table 6 Relational operations 68 T
22、able 7 String operation 69 Descriptors: Data processing, programming (computers), computer programs, programming languages, Pascal.ISO/IEC10206:1991(E) BSI 05-2000 v Foreword ISO (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the spe
23、cialized system for worldwide standardization. National bodies that are members of ISO or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular fields of technical activity. ISO and IEC technical
24、committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with ISO and IEC, also take part in the work. In the field of information technology, ISO and IEC have established a joint technical committee, ISO/IECJTC1. Draft Int
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- BSISOIEC102061991INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESEXTENDEDPASCAL 信息技术 编程 语言 扩展 PASCAL PDF

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