ITU-T HDBK IC-1993 Introduction to Chill (Study Group X 89 pp)《冷的介绍 研究组 89pp》.pdf
《ITU-T HDBK IC-1993 Introduction to Chill (Study Group X 89 pp)《冷的介绍 研究组 89pp》.pdf》由会员分享,可在线阅读,更多相关《ITU-T HDBK IC-1993 Introduction to Chill (Study Group X 89 pp)《冷的介绍 研究组 89pp》.pdf(89页珍藏版)》请在麦多课文档分享上搜索。
1、 STD-ITU-T HDBK IC-ENGL 1993 111 4B6259L 0682443 446 Ip INTERNATIONAL TELECOMMUNICATION UNION ITU-T TELECOMMUNICATION STANDARDIZATION SECTOR OF ITU INTRODUCTION TO CHILL STDmITU-T HDBK IC-ENGL 1993 9 486259L Ob82444 382 INTERNATIONAL TELECOMMUNICATION UNION ITU-T TELECOMMUNICATION STANDARDIZATION SE
2、CTOR OF TU INTRODUCTION TO CHILL ISBN 92-61 -04891 -9 STD-ITU-T HDBK IC-ENGL 1993 4862593 0682445 219 NOTES 1 As a consequence of a reform process within the International Telecommunication Union (ITU), the CCITT ceased to exist as of 28 February 1993. In its place, the IT Telecommunication Standard
3、ization Sector (ITU-T) was created as of 1 March 1993. Similarly, in this reform process, the CCIR and the IFRB have been replaced by the Radiocommunication Sector. In order not to delay publication of this Introduction, no change has been made in the text to references containing the acronyms “CCIT
4、T, CCIR or IFRB” or their associated entities such as Plenary Assembly, Secretariat, etc. Future editions of this Recommendation will contain the proper terminology related to the new ITU structure. 2 previous 1980 version. This 1993 version of the “Introduction to CHILL” was prepared by IT-T Study
5、Group X, and replaces the O ITU 1993 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 writing from the ITU. Contents 1 introduction 2 Lexical Conventions 3
6、 Data 3.1 Mode Definitions . 3.2 Synonym Definitions 3.3 Location Declarations 3.4 Discrete Data . 3.5 Res . 3.6 Powersets 3.7 References 3.8 Procedures 3.9 Strings 3.10 Arrays 3.11 Structures 3.12 Mode Checking . 3.13 Mode Conversions 3.14 Conditional Expressions . 3.15 Operator Precedence . . 4 Ac
7、tions 4.1 Assignment Action 4.2 IfAction . 4.3 CaseAction . 4.4 DoAction 4.5 ExitAction 4.6 GotoAction . 4.7 CaLlAction 4.8 Assert Action 5 Program Structure 5.1 Blocks 5.2 Procedures 5.3 Modulions 5.4 Piecewise Programming . lTU-T . Introduction to CHILL 1 3 4 4 5 6 7 11 Il 12 14 15 17 18 20 21 22
8、23 25 25 26 27 28 32 33 33 34 35 35 36 40 42 i STD-ITU-T HDBK IC-ENGL 2773 4862571 Ob82447 O71 5.5 NameManagement . 45 6 Concurrent Execution 47 6.1 Processes . 47 6.2 Synchronisation . 48 6.3 Communication . 52 7 Time Supervision 56 7.1 Timeoutable Processes 56 7.2 TimingData . 56 7.3 TimingActions
9、 . 57 8 Exception Handling 61 9 Input and Output 64 9.1 FiieHandiing 65 9.2 DataTransfer . 66 9.3 Text Inputloutput 67 References 78 Index 79 11 ITU-T . introduction to CHILL STD-ITU-T HDBK IC-ENGL 1793 48b257L 0682448 T28 Chapter 1 Introduction CHILL is the high-level programming language defined a
10、nd recommended by the International Telegraph and Telephone Consultative Committee (CCITT) for the production of software for telecommunication systems. In 1988, the Intemational Standardization Organization (ISO) and the International Electrotechnical Commission (IEC) adopted CHILL as the internati
11、onal standard ISO/IEC 9496. CHILL was initially designed for the development of stored program control switching systems. However, it has proven to be a general and powerful high-level programming language, being used in many other applications (e.g. suport software), mainly in the fields of private
12、 and public telecommunications. The CCITI”s Recommendation Z.2001, 21 is the definitive reference of the language, providing a complete definition of its features. Although the 2.200 can answer any question concerning the syntax and semantics of the language, being the natural guide for compiler wri
13、ters, its formal and concise style of presentation is inadequate for programmers. The purpose of this document is to provide an overview of the main features of CHILL, by concentrating on their semantics and use, rather than on their syntax and subtle exceptional cases. The reader is not required to
14、 be famiiiar with CHILL, but is supposed to know at least another high-level programming language, such as Pascal3 or C4. The CHILL syntax is not very different from the syntax of those languages and might not be difficult to understand, even without a formal description. The presentation of the lan
15、guage is intended to be self-contained. In case of doubt the reader should consult 2.200. CHILL belongs to a programming language generation which emerged after PU1 5, Algol 686 and Pascal. It Since then, the maintenance and the evolution of this recommendation has been in charge of a CCITT team. Th
16、e team evaluates the feedback supplied by language users and implementors and the decisions made at the previous periods. This has been extremely positive for the language by allowing the continuous improvement of the accuracy of its definition, its readability, and its expressiveness. I was develop
17、ed in parallel with Ada7 in the 70s. The first version of the 2.200 was published by CCIT in 1980. At present, CHILL is one of the most refined high-level programming languages. It implements many of the recent ideas raised in the software engineering field and offers constructs and mechanisms orien
18、ted toward concurrent programming in centralised and distributed systems. Some of these features are outlined below. CHILL stands for QXT - This example defines a synonym for a subrange of integers from 1 to 3 1. Day is called the synrnode name and range (1:3i) the defining mode of the mode definiti
19、on. Day can be used with the same meaning of the defining mode, in any context. In particular, day locations can be assigned to range (i:31) locations and vice-versa. There are two kinds of mode definitions. The one introduced by the reserved word synmode defines synonyms for a given mode. The reser
20、ved word newmode, on the other hand, introduces mode definitions where new modes are defined. This means that the names in a newmode definition are not synonyms, but names of modes that, although sharing the same structure with the defining mode, are incompatible with it. 4 ITU-T - Introduction to C
21、HILL STD-ITU-T HDBK IC-ENGL 1993 48b2591 Ob82452 459 newmode dollar, pound = int; This defines two new modes: dollar and pound. Both of them share the same structure with the defining mode int, inheriting most of the properties of integers. In particular, dollar and pound can be used to index an arr
22、ay, and their values can be arithmetically operated. They cannot be intermingled, however. It is not allowed to assign a pound value to a dollar location, neither to sum a dollar with a pound. Newmode definitions are very useful since they allow the compiler to detect some errors during mode checkin
23、g that a mere structural mode compatibility mechanism would not. Every mode defines the size of the locations associated to it. The built-in routine size applied to a mode delivers the size of its locations in addressable units . 3.2 Synonym Definitions Synonyms (constants) are named values. The nam
24、e defined in a synonym definition can be used in any context in place of the constant value that it represents. The use of synonyms greatly improves program readability and maintainabiiity. syn zero = O, pi = 3.1415; tilde = - , In this example, zero is a synonym denoting the integer value O. Tilde
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ITUTHDBKIC1993INTRODUCTIONTOCHILLSTUDYGROUPX89PP 介绍 研究 89 PPPDF

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