CAN CSA-ISO IEC 7185-1995 Information Technology - Programming Languages - Pascal.pdf
《CAN CSA-ISO IEC 7185-1995 Information Technology - Programming Languages - Pascal.pdf》由会员分享,可在线阅读,更多相关《CAN CSA-ISO IEC 7185-1995 Information Technology - Programming Languages - Pascal.pdf(84页珍藏版)》请在麦多课文档分享上搜索。
1、I N T E R N AT I 0 N A L STANDARD ISO/IEC 7185 Second edition 1990- 10-1 5 (Reaffirmed 2004) Information technology - Programming languages - Pascal (Revision of IS0 7185 : 1983) Technologies de Pin formation - Langages de programmation - Pascal (Revision de IISO 7185 : 19831 National Standard of Ca
2、nada CAN/CSA-ISO/IEC-7185-95 International Standard ISO/IEC 7185:1990 has bet adopt e d, with out rn o di f i c a t i on , as CAN/CSA-ISO/IEl 7185-95, which has been approved as a National Standard Canada by the Standards Council of Canada. Febtllary 19 Reference number ISO/IEC 7185 : 1990 (E) ISO/I
3、EC 7185 : 1990 (E) Contents Page 1 Scope 1 2 Normative reference 1 3 Definitions 1 4 Definitional conventions 2 5 Compliance . 3 5.1 Processors . 3 5.2 Programs 5 6 Requirements . 5 6.1 Lexicaltokens 5 6.2 Blocks. scopes and activations . 8 6.3 Constant . definitions . 11 6.4 Type . definitions . 11
4、 6.5 Declarations and denotations of variables 21 6.6 Procedure and function declarations 24 6.7 Expressions 38 6.8 Statements 42 6.9 Input and output . 49 6.10 Programs . 55 Annexes A Collectedsyntax . 58 B Cross-references 64 C Required identifiers 71 D Errors 72 E Implementation . defined feature
5、s 76 F Implementation . dependent features . 78 0 ISO/IEC 1990 All rights reserved . No par! 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 writing from the publisher . Printed in Sw
6、itzerland ISO/IEC Copyright Office e Case postale 56 rn CH-1211 Geneve 20 e Switzerland ISO/IEC 7185 : 1990 (E) Foreword IS0 (the International Organization for Standardization) and IEC (the International Electrotechnical Commission) form the specialized system for worldwide standardiz- ation. Natio
7、nal 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 fields of technical activity. IS0 and IEC technical committees collaborate in fields of mutual interest.
8、 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 established a joint technical committee, ISO/IEC JTC 1. Draft International Standards adopted by the joint technica
9、l 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 Standard ISO/IEC 7185 was prepared by Joint Technical Committee ISO/IEC JTC 1, /nfurmation technology. This secon
10、d edition cancels and replaces the first edition (IS0 7185 : 1983). Annexes A, B, C, D, E and F are for information . Ill ISODEC 7185:1990(E) Introduction This International Standard provides an unambiguous and machine independent definition of the programming language Pascal. Its purpose is to faci
11、litate portability of 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 for teaching programming as a systemati
12、c discipline based on b) to define a ianguage whose implementations could be both reliable and efficient on then-available certain fundamental concepts cIearly and naturally reflected by the language; computers. However, it has become apparent that Pascal has attributes that go far beyond these orig
13、inal goals. It is now being increasingly used commercially in the writing of both system and application software. This International 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 sy
14、stems. In drafting this International Standard the continued stability of Pascal has been a prime objective. However, apart from changes to clarify the specification, two major changes have been introduced. a) The syntax used to specify procedural and functional parameters has been changed to requir
15、e the use of a procedure or function heading, as appropriate (see 6.6.3.1); this change was introduced to overcome a language insecurity. b) A fifth kind of parameter, the conformant-array-parameter, has been introduced (see 6.6.3.7). With this kind of parameter, the required bounds of the index-typ
16、e of an actual-parameter are not fixed, but are restricted to a specified range of values. Project history In 1977, a working group was formed within the British Standards Institution (BSI to produce a standard for the programming language Pascal. This group produced several working drafts, the firs
17、t draft for public comment being widely published early in 1979. In 1978, BSIs proposal that Pascal be added to ISOs program of work was accepted, and the IS0 Pascal Working Group (then designated ISO/TC97/SC5/WG4) was formed in 1979. The Pascal standard was to be published by BSI on behalf of ISO,
18、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 (Pascal. After approval, the first meeting was held in January 1979. In December of 1978, X3J9 c
19、onvened as a result of a SPARC (Standards Planning and Requirements Committee) resolution to form a US TAG (Technical Advisory Group) for the IS0 Pascal standardization effort initiated by the UK. These efforts were performed under X3 project 3 17. In agreement with IEEE representatives, in February
20、 of 1979, an X3 resolution combined the X3J9 and p770 committees into a single committee called the Joint X3J9/IEEE-W70 Pascal Standards Committee. (Throughout, the term Tpc refers to this committee.) The first meeting as JPC was held in April 1979. The resolution to form JPC clarified the dual func
21、tion of the single joint Committee to produce a dpANS and a proposed IEEE Pascal standard, identical in content. ANSI/IEEE77OX3.97-1983, American National Standard Pascal Computer Programming Language, was approved by the IEEE Standards Board on September 17,1981, and by the American National Standa
22、rds IV ISOhEC 7185: 1990(E) Institute on December 16, 1982. British Standard BS6192, Specification for Computer programming language Pascal, was published in 1982, and International Standard 7185 (incorporating BS6192 by reference) was approved by IS0 on December 1, 1983. Differences between the ANS
23、I and IS0 standards are detailed in the Foreword of ANSI/IEEE770X3.97-1983. In 1985, the IS0 Pascal Working Group (then designated ISO/TC97/SC22/WG2, now ISO/IEC JTC1/ SC22/WG2) was reconvened after a long break. An Interpretations Subgroup was formed, to interpret doubtful or ambiguous portions of
24、the Pascal standards. As a result of the work of this subgroup, and also of the work on the Extended Pascal standard being produced by WG2 and JPC, BS6192/IS07185 was revised and corrected during 1988/89; it is expected that ANSI/IEEE770X3.97-1983 wi11 be replaced by the revised IS0 7185. The major
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- CANCSAISOIEC71851995INFORMATIONTECHNOLOGYPROGRAMMINGLANGUAGESPASCALPDF

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