ITU-T HDBK VOL I CFD-1982 Chill Formal Definition Part I Part II Part III (Volume I 105 pp)《冷正式定义 第1 2和3部分 第1册 105页》.pdf
《ITU-T HDBK VOL I CFD-1982 Chill Formal Definition Part I Part II Part III (Volume I 105 pp)《冷正式定义 第1 2和3部分 第1册 105页》.pdf》由会员分享,可在线阅读,更多相关《ITU-T HDBK VOL I CFD-1982 Chill Formal Definition Part I Part II Part III (Volume I 105 pp)《冷正式定义 第1 2和3部分 第1册 105页》.pdf(95页珍藏版)》请在麦多课文档分享上搜索。
1、STD*ITU-T HDBK VOL I CFD-ENGL 1782 m 4862571 0682768 320 b INTERNATIONAL TELECOMMUNICATION UNION CCITT THE INTERNATIONAL TELEGRAPH AND TELEPHONE CON SU LTATIVE COM M IllE E CHILL Formal Definition Volume I Part I Part II Part III Geneva 1982 STD.ITU-T HDBK VOL I CFD-ENGL 1982 E 4862571 Ob2b7 267 m I
2、NTERNATIONAL TELECOMMUNICATION CCITT THE INTERNATIONAL TELEGRAPH AND TELEPHONE CONSULTATIVE COM MIlTEE UNION CHILL Forma I Definit ion Volume I Part I Part II Part III Geneva 1982 STDmITU-T HDBK VOL I CFD-ENGL 1942 = Y862591 0682970 TB9 SB O I.T.U. STD-ITU-T HDBK VOL I CFD-ENGL 1982 E 4862593 068297
3、1i 935 m Volume I CONTENTS Part I: Prelude 10 pages Part II: Meta Notation Summary 18 pages Part 111.1 : Annotations to Context Conditions 35 pages Part 111.2: Annotations to Dynamic Semantics 26 pages STD-ITU-T HDBK VOL I CFD-ENGL L982 4862592 Ob82772 851 9 CHILL Formal Definition Part I Prelude Pa
4、rt 1/1 1 . INTRODUCTION . 3 2 . MOTIVATION AND PURPOSES 4 3 . FORMAL DEFINITION METHOD . 5 3.1. Reasons for choosing Denotational Semantics 5 3.2. Reasons for choosing the Vienna Development Method 5 3.3. On Denotational Semantics . 5 3.3.1. The Notion of Store . 5 3.3.2. The Notion of State . 5 3.3
5、.3. The Notion of Environment 6 3.3.4. Denotations 6 3.3.5. The Homomorphism-Denotational Semantics Rule 6 3.3.6. Basic Parts of a Denotational Semantics Definition . 6 3.3.7. Static and Dynamic Semantics . 6 3.3.8. The Notion of Control Flow 7 3.4. On Abstractly Modelling CHILL Concurrent Execution
6、 . 7 3.4.1. Non-determinism 7 3.4.2. Fairmerging 7 3.4.3. Non-determinism and Fairmerging 8 3.4.4. Short-term Scheduling Simplifications . 8 4 . MODEL OVERVIEW 9 4.1. Program Transformation 9 4.2. Context Conditions 9 4.3. Dynamic Semantics . 10 4.4. Interpreting a CHILL program . 10 4.5. Subject of
7、 Definition 10 STDmITU-T HDBK VOL I CFD-ENGL 1982 W 4862551 Ob82974 624 INTRODUCTION Part 113 1. INTRODUCTION This formal definition of the CHILL programming language supplements the description given in CCITT Recommendation 2.200. The formal definition is separated into two volumes and four parts.
8、Volume I contains parts I, II and III, and volume II contains part IV. The purpose of this prelude, part I, is to explain the reasons for choosing a formalized definition of CHILL, the specific method used herein, and the particular composition of the formal model. Part II represents a very terse re
9、ference manual to the meta-language notation used. It is not meant to be a tutorial on, or a guide to, the proper use of the notation; merely a place in which to look up the meaning of particular, concrete meta-language constructs. l) Part III contains annotations to part IV. The formulae of part IV
10、 may appear very dry. Annotations serve the point of rendering these formulae more readable. Ideally every formula line should be accompanied by a slightly technical, but mostly natural language text, expressing in words what the formulae purport to express. Since such words are already found in 2.2
11、00. the main part of the recommendation, we instead focus on technical details, and otherwise refer to specific paragraphs of 2.200. Part IV contains the formal definition itself. It has one minor and two major parts. First a proper basis of the formal definition is given. Then is given the syntax o
12、f CHILL together with all statically decidable context conditions, also referred to as static semantics. Then is given the dynamic semantics. The former part refers to what is exclusively the job of a CHILL compiler system, whereas the latter part exclusively deals with run-time properties. 1. “The
13、Vienna Development Method: The Meta-Language“ (Eds. D. jerner used in holding signals sent but not yet received; etc. In this definition all such state components are imperatively modelled by appropriately declared, global meta-variables. In denotational semantics one associates with each language c
14、onstruct its denotation. For actions these are functions from STD-ITU-T HDBK VOL I CFD-ENGL 3982 4862593 0682777 333 Part 1/6 PRELUDE states to states. For expressions they can (simplifying) be considered functions from states to values. 3.3.3. The Notion of Environment The store component of the st
15、ate forms a semantic Domain which serves to capture the notion of variables and their values. To capture the notion of scope-determined name-binding another semantic domain construct, the environment, is introduced. It records the denotation of names of a CHILL program. 3.3.4. Denotations The denota
16、tion of a variable identifier ( is a location, where a store is a map from locations to values. The denotation of a subroutine-like procedure identifier is a function from argument value lists to functions from states to states. Hence, when such a procedure is called, its denotation is applied to an
17、 argument list and a state, resulting in a new state. If the procedure returns a value then its denotation is normally taken to be that of a function from argument value lists to functions from states to states and values. Thus, when such a procedure is called, its denotation is applied to an argume
18、nt list and a state and yields a new state and a resulting value. 3.3.5. The Homomorphism-Denotational Semantics Rule For a semantics definition to be denotational the definition of the semantics of a composite (syntactic) construct must be a function, Fct, of the semantics of each individual, const
19、ituent construct. Let fcl,c2, ., c,J represent a composite CHILL construct, with c, for all i, represents simple or composite CHILL constructs. Let Sem designate the semantics (finding) function, then the denotational semantics rule can be phrased: Semlc, , c2,. . ., c,l = Fct fSem(c,l, Semlc,), . .
20、 . , Semlc Jl Sem and Fct are usually defined in terms of various kinds of semantic Domain objects, like stores and environments. 3.3.6. Basic Parts of a Denotational Semantics Definition Establishing a denotational semantics definition of CHILL therefore amounts to the stepwise establishment of a n
21、umber of definitions: (1 1 (2) (3) First we define the Domains of syntactic CHILL constructs. Then we define the Domains of semantic objects: stores, environments, etc Finally we define the Elaboration functions which to every syntactic construct ascribes its meaning: Ffs ynllsem-list) = Body type:
22、SYN -+ (SEM, SEM, . SEM, I-, SEMI here SYN, SEW. and SEM denote the Domains, - the logical types - of the syntactic input object, the semantic input objects and the resulting object. The latter is, in Denotational Semantics, always taken to be a semantic object. The above is a simplified exposition.
23、 It is now expanded upon. 3.3.7. Static and Dynamic Semantics The BNF grammar specifies certain strings to be valid program texts. There are, however, rules, called static semantics rules, or (static) context conditions, that these syntactically valid program texts should satisfy. To determine wheth
24、er an occurrence, in a CHILL program, of a language construct is valid, (a summarization of) the context in which it occurs is required. In connection with Static Semantics we term this summarization a Dictionary. (in the context of Dynamic Semantics it is called an Environment.) Now functions, whos
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- ITUTHDBKVOLICFD1982CHILLFORMALDEFINITIONPARTIPARTIIPARTIIIVOLUMEI105PP 正式 定义 12 部分 105 PDF

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