ANSI ISO IEC 10206-1991 Information technology - Programming languages - Extended Pascal (Adopted by INCITS)《信息技术.程序设计语言.INCITS采纳的扩展Pascal语言》.pdf
《ANSI ISO IEC 10206-1991 Information technology - Programming languages - Extended Pascal (Adopted by INCITS)《信息技术.程序设计语言.INCITS采纳的扩展Pascal语言》.pdf》由会员分享,可在线阅读,更多相关《ANSI ISO IEC 10206-1991 Information technology - Programming languages - Extended Pascal (Adopted by INCITS)《信息技术.程序设计语言.INCITS采纳的扩展Pascal语言》.pdf(226页珍藏版)》请在麦多课文档分享上搜索。
1、INTERNATIONAL STANDARD ISOAEC 10206 First edition 1991-04-15 Information technology - Programming languages - Extended Pascal Langages de programmation - Pascal Btendu Reference number ISO/IEC 10206 : 1991 (E) Adopted by INCITS (InterNational Committee for Information Technology Standards) as an Ame
2、rican National Standard.Date of ANSI Approval: 1/11/99Published by American National Standards Institute,25 West 43rd Street, New York, New York 10036Copyright 2002 by Information Technology Industry Council (ITI).All rights reserved.These materials are subject to copyright claims of International S
3、tandardization Organization (ISO), InternationalElectrotechnical 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, including an electronic retrieval system, with
4、outthe 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 AmericaISOAEC 10206 : 1991(E) Contents Page Introduction . 1 Scope 2 Normative reference 3 Definitions 3.1 Dynamic-viol
5、ation. 3.2 Error 3.3 Extension 3.4 Implementation-defined 3.5 Implementation-dependent . 3.6 Processor 4 Definitional conventions 5 Compliance . 5.1 Processors 5.2 Programs 6 Requirements 6.1 Lexicaltokens 6.1.1 General 6.1.2 Special-symbols. 6.1.3 Identifiers 6.1.4 Remote-directives . 6.1.5 Interfa
6、ce-directives 6.1.6 Implementation-directives 6.1.7 Numbers 6.1.8 Labels . vi 1 1 2 5 5 5 6 6 6 7 7 7 8 0 ISO/IEC 1991 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 p
7、ermission in writing from the publisher. ISO/IEC Copyright Office K Case postale 56 K CH-1211 Geneve 20 K Switzerland Printed in Switzerland ii ISO/IEC 10206 : 1991 (E) 6.1.9 Character-strings. . 6.1.10 Token separators 6.1.11 Lexical alternatives . 6.2 Blocks, scopes, activations, and states 6.2.1
8、Blocks . 6.2.2 Scopes . 6.2.3 Activations. 6.2.4 States . 6.3 Constants 6.3.1 General 6.3.2 Example of a constant-definition-part 6.4 Types and schemata. . 6.4.1 Type-definitions 6.4.2 Simple-types . 6.4.3 Structured-types 6.4.4 Pointer-types . 6.4.5 Compatible types . 6.4.6 Assignment-compatibility
9、 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.3 Component-variables 6.5.4 Identified-variables 6.5.5 Buffer-variables 6.5
10、.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 procedures. 6.7.6 Required functions 6.8 Expressions . 6.8.1 General 6.8.2 Constant
11、-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
12、 . . . 43 I 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 Function-designators . 6.8.6 Function-accesses 6.8.7 Structured-value-constructors. . 6.8.8 Constant-accesses 6.9 State
13、ments . 6.9.1 General . 6.9.2 Simple-statements 6.9.3 Structured-statements 6.9.4 Threats . 6.10 Inputandoutput . 6.10.1 The procedure read. 6.10.2 The procedure readln . 6.10.3 The procedure write 6.10.4 The procedure writeln 6.10.5 Theprocedurepage 6.11 Modules 6.11.1 Module-declarations. . 6.11.2
14、 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 . 6.11.7 Example of exporting a range of enumerated-type values . 6.12 Main-program-declarations 6.13 Programs . 71 75 76 76 78 8
15、0 82 82 82 84 90 91 91 92 93 96 97 97 97 99 100 102 102 104 111 112 114 Annexes AnnexA Collectedsyntax 116 Annex B Incompatibilities with Pascal standards 176 Annex C Required identifiers . 177 Annex D Errors and dynamic-violations. . 178 Annex E Implementation-defined features. . 186 Annex F Implem
16、entation-dependent features . 189 AnnexG Bibliography . 191 Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 iv ISO/IEC 10206 : 1991(E) Foreword IS0 (the International Organization for Standardization) and IEC (
17、the International Electrotechnical Commission) form the specialized system for worldwide standardiz- ation. National 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 pa
18、rticular 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 es
19、tablished 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 % of the national bodies casting a vote. International
20、Standard ISO/IEC 10206 was prepared by Joint Technical Committee ISO/IEC JTC 1, Information technology. Annexes A to G are for information only. ISO/IEC 10206 : 1991 (E) Introduction This International Standard provides an unambiguous and machine independent definition of the programming language Ex
21、tended 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 su
22、itable for teaching programming as a systematic discipline based on certain fundamental concepts clearly and naturally reflected by the language; b) to define a language whose implementations could be reliable and efficient on then-available computers. However, it has become apparent that Pascal has
23、 attributes 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. Pr
24、ograms 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.
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ANSIISOIEC102061991INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESEXTENDEDPASCALADOPTEDBYINCITS 信息技术 程序设计语言

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