CAN CSA-ISO IEC 10206-1994 Information Technology - Programming Languages - Extended Pascal.pdf
《CAN CSA-ISO IEC 10206-1994 Information Technology - Programming Languages - Extended Pascal.pdf》由会员分享,可在线阅读,更多相关《CAN CSA-ISO IEC 10206-1994 Information Technology - Programming Languages - Extended Pascal.pdf(226页珍藏版)》请在麦多课文档分享上搜索。
1、INTER NATIONAL STANDARD ISOAEC 10206 First edition 1991 -04-1 5 (Reaffirmed 2004) Information technology - Programming languages - Extended Pascal Langages de programmation - Pascai Btendu National Standard of Canada CAN/CSA-ISO/IEC-l0206=94 International Standard ISO/IEC 10206:1991 has been adopted
2、, without modification, as CAN/CSA-ISO/IEC- 10206-94, which has been approved as a National Standard of Canada by the Standards Council of Canada. November 1994 Reference number ISO/IEC 10206 : 1991 (E) - - -_ - ISO/IEC 10206 : 1991 (E) Contents Introduction . Page v1 Scope Normative reference Defin
3、itions 3.1 Dynamic-violation . 3.2 Error 3.3 Extension 3.4 Implementation-defined *. . 1 1 1 . 2 2 . . 2 . 2 . 2 2 3.5 Implementation-dependent 3.6 Processor . Definitional conventions . Compliance 5.1 Processors . 5.2 Programs . 4 5 2 6 Requirements . 6.1 Lexical tokens . 5 5 5 6 6 6 7 7 7 8 Genera
4、l. Special-symbols Id en t i fiers . Rem0 te-directives Interface-directives . 6.1.1 6.1.2 6.1.3 6.1.4 6.1.5 6.1.6 6.1.7 6.1.8 . . . . . Implementation-directives . Numbers . Labels 0 ISO/IEC 1991 All rights reserved. No parr of this publication may be reproduced or utilized in any form or by any me
5、ans, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher. Printed in Switzerland ISO/IEC Copyright Office K Case postale 56 K CH-1211 Geneve 20 K Switzerland II ISO/IEC 10206 : 1991 (E) 6.1.9 Character.strings . 6.1.10 Token separators . 6
6、.1.11 Lexical alternatives Blocks. scopes. activations. and states . 6.2.1 Blocks 6.2.2 Scopes 6.2.3 Activations 6.2.4 States 6.3 Constants . 6.2 . 6.3.1 General 6.3.2 Example of a constant-definition-part . 6.4 Types and schemata . 6.4.1 Type-deficitions . 6.4.2 Simple-types 6.4.3 Structured-types
7、. 6.4.4 Pointer-types 6.4.5 Compatible types 6.4.6 Assignment-compatibility . 6.4.7 Schema-definitions . 6.4.8 Discriminated-schemata . 6.4.9 Type-inquiry 6.4.10 Example of a type-definition-part . 6.5 Declarations and denotations of variables 6.5.1 Variable-declarations . 6.5.2 Entire-variables 6.5
8、.3 Component-variabIes . 6.5.4 Identified-variables . 6.5.5 Buffer-variables . 6.5.6 Substring-variables . 6.6 Initial states . 6.7 Procedure and function declarations 6.7.1 Procedure-declarations . 6.7.2 Function-declarations 6.7.3 Parameters 6.7.4 Required procedures and functions . 6.7.5 Required
9、 procedures 6.7.6 Required functions . 6.8 Expressions 6.8.1 General . 6.8.2 Constant-expressions . 8 9 9 10 10 10 13 15 16 16 17 17 17 19 24 32 33 33 34 35 36 36 38 38 39 39 41 41 42 42 43 43 45 48 56 56 63 69 69 71 . 111 ISO/IEC 10206 : 1991 (E) 6.8.3 Operators . 6.8.4 Schema-discriminants 6.8.5 F
10、unction-designators . 6.8.6 Function-accesses 6.8.7 Structured-value-constructors 6.8.8 Constant-accesses 6.9 Statements . 6.9.1. General . 6.9.2 Simple-statements 6.9.3 Structured-statements 6.9.4 Threats . 6.10 Input and output . 6.10.1 The procedure read . 6.10.2 The procedure readln . 6.10.3 The
11、 procedure write 6.10.4 The procedure writeln 6.10.5 The procedure page 6.11 Modules 6.11.1 Module-declarations 6.11.2 Export-part . 6.11.3 Import-specifications . 6.11.4 Required interfaces . 6.11.5 Example of a module . 6.11.6 Examples of program-components that are module- declarations . Example
12、of exporting a range of enurnerated-type values . 6.12 Main-program-declarations 6.11.7 6.13 Programs . Annexes Annex A Annex B Annex C Annex D Annex E Annex F Annex G Index . Collected syntax Incompatibilities with Pascal standards Required identifiers . Errors and d ynamic-violations Implementatio
13、n-defined features Implementation-dependent features . Bibliography . . 71 75 76 76 78 80 82 82 82 84 90 91 91 92 93 96 97 97 97 99 100 102 102 104 111 112 114 116 176 177 178 186 189 191 192 ISO/IEC 10206 : 1991 (E) Foreword IS0 (the International Organization for Standardization) and IEC (the Inte
14、rnational Electrotechnical Commission) form the specialized system for worldwide standardiz- ation. NationaI bodies that are members of IS0 or IEC participate in the development of International Standards through technical committees established by the respective organization to deal with particular
15、 fields of technical activity. IS0 and IEC technical committees collaborate in fields of mutual interest. Other international organizations, governmental and non-governmental, in liaison with IS0 and IEC, also take part in the work. In the field of information technology, IS0 and IEC have estabhhed
16、a joint technical committee, ISO/IEC JTC 1. Draft International Standards adopted by the joint technical committee are circulated to national bodies for voting. Publication as an International Standard requires approval by at least 75 Vo of the national bodies casting a vote. International Standard
17、ISO/IEC 10206 was prepared by joint Technical Committee ISO/IEC JTC 1, Information technology. Annexes A to G are for information only. V ISO/IEC 10206 : 1991 (E) Introduction This International Standard provides an unambiguous and machine independent definition of the programming language Extended
18、Pascal. Its purpose is to facilitate portability of Extended Pascal programs for use on a wide variety of data processing systems. Language history The computer programming language Pascal was designed by Professor Niklaus Wirth to satisfy two principal aims a) to make available a language suitable
19、for teaching programming as a systematic discipline based on b) to define a language whose implementations could be reliable and efficient on then-available certain fundamental concepts clearly and naturally reflected by the language; computers. However, it has become apparent that Pascal has attrib
20、utes that go far beyond those original goals. It is now being increasingly used commercially in the writing of system and application software. With this increased use, there has been an increased demand for and availability of extensions to IS0 7 185: 1983, Programming languages - PASCAL. Programs
21、using such extensions attain the benefits of the extended features at the cost of portability with standard Pascal and with other processors supporting different sets of extensions. In the absence of a standard for an extended language, these processors have become increasingly incompatible. This In
22、ternational Standard is primarily a consequence of the growing commercial interest in Pascal and the need to promote the portability of Pascal programs between data processing systems. Project history In 1977, a working group was formed within the British Standards Institution (BSI) to produce a sta
23、ndard for the programming language Pascal. This group produced several working drafts, the first draft for public comment being widely published early in 1979. In 1978, BSIs proposal that Pascal be added to ISOs programme of work was accepted, and the IS0 Pascal Working Group (then designated ISO/TC
24、97/SC5/WG4) was formed in 1979. The Pascal standard was to be published by BSI on behalf of ISO, and this British Standard referenced by the International Standard. In the USA, in the fall of 1978, application was made to the IEEE Standards Board by the IEEE Computer Society to authorize project 770
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CANCSAISOIEC102061994INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESEXTENDEDPASCALPDF

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