矿大 程序设计语言原理 复习ppt Review.ppt

  1. 1、本文档共78页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
矿大 程序设计语言原理 复习ppt Review

Concepts of Programming Languages;Review ;1.3 Language Evaluation Criteria;1.3 Language Evaluation Criteria;1.5 Language Categories;1.5 Language Categories;1.7 Implementation Methods;Chapter 2: Evolution of the major programming languages Zuse’s Plankalkul Minimal Hardware Programming: Pseudocodes The IBM 704 and FORTRAN Functional Programming: LISP The First Step Toward Sophistication: ALGOL 60 Computerizing Business Records: COBOL The Beginnings of Timesharing: BASIC Everything for Everybody: PL/I ;9. Two Early Dynamic Languages: APL and SNOBOL 10. The Beginnings of Data Abstraction: SIMULA 67 11. Orthogonal Design: ALGOL 68 12. Some Early Descendants of the ALGOLs 13. Programming Based on Logic: Prolog 14. Hisotry’s Largest Design Effort: Ada Object-Oriented Programming: Smalltalk Combining Imperative and Object-Oriented Features: C++ Programming the world wide web: Java ;Chapter 5: Names, Bindings, Type Checking,and Scopes Introduction Names Variables (属性,别名,左值,右值 P183) The Concept of Binding(动态和静态绑定、生命周期) Type Checking Strong Typing Type Compatibility Scope Scope and Lifetime Referencing Environments Named Constants Variable Initialization;5.2 Names (cont.);5.3 Variables; 两个变量具有按名等价的类型当且仅当它们一起被说明,或者用相同的类型标识符说明,即对应的类型名相同。如: type T is array[1..100] of INTEGER; (Ada) x,y : array[1..100] of INTEGER; (P198) z : array[1..100] of INTEGER; r,w : T; i, j : FLOAT; 按名等价: r与w, i与j x与y 、x与z按名不等价, z与r按名不等价.; 两个变量具有按结构等价的类型当且仅当变量的所有分量有相同类型的值集。 在上例中,u和v第二个分量的值集是相同的,所以按结构等价。 x和u呢?; 两个变量具有按定义等价的类型当且仅当两个变量有完全相同的类型(包括相同的域名)。 除类型名外的其他特征均相同者即视为按定义等价。 如 type complex = record re: int; im: int end; Type rational = record nominator: int; denominator: 1..299999 end; ;program example; var a, b : integer; …… procedure subl

文档评论(0)

shuwkb + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档