freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

編譯原理-數(shù)據(jù)類型和類型檢查(已修改)

2025-10-24 02:27 本頁面
 

【正文】 Compiler Theory Fall 2021 Jianhui Yue Chapter 6 Data Types and Type Checking Instructor Jianhui Yue Software College @SCU Compiler Theory Fall 2021 Jianhui Yue Principal Task of Compiler 1. Type inference the putation and maintenance of information on data types 2. Type checking – the use of the information to ensure that each part of the program makes sense under the type rules of the language. ? These two tasks are related, performed together, and referred as type checking. Compiler Theory Fall 2021 Jianhui Yue Data Type ? Data type is set of values with certain operations on those values. ? Example: – integer refers to a subset of the mathematical integers, together with the arithmetic operations that are provided by the language definition. ? Data types are described by a type expressions, which is – A type name (such as integer) or – A structured expressions (such as array[10] ) – Operations are assumed or implied Compiler Theory Fall 2021 Jianhui Yue Type Expressions ? Type expressions can occur in several places in a program. ? Explicit type information – int x。 associates a type to a variable name – class Car { …} – defines a new type name ? Implicit type information – const greeting = “Hello!”。 array of char in Pascal. ? Type information, that is contained in declarations, is maintained in the symbol table and retrieved by the type checker whenever the associated names are referenced. – Example: a[i]. A range checking is not statically determinable. Compiler Theory Fall 2021 Jianhui Yue Simple Types ? There are buildin ( predefined ) types in a programming language. – Example: int and double ? The predefined types correspond to – Numeric data types that are provided by machine architectures and whose operations exist as machine instructions. – Elementary types like boolean or char whose behavior is easy to implement. ? Such data types are simple types, their values have no internal structure. Compiler Theory Fall 2021 Jianhui Yue N
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫吧 www.dybbs8.com
公安備案圖鄂ICP備17016276號-1