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

正文內(nèi)容

編譯原理-數(shù)據(jù)類型和類型檢查-在線瀏覽

2024-12-04 02:27本頁(yè)面
  

【正文】 piler 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!”。 Compiler Theory Fall 2021 Jianhui Yue Structured Types ? Given a set of predefined types, new data types can be created using type constructors, such as array and struct . ? Such types are often called structured types. ? Arrays are monly allocated contiguous storage from smaller to larger indexes. Compiler Theory Fall 2021 Jianhui Yue Type Definitions ? Type definitions provides a mechanism to assign names to type expressions. ? Example: ? Type declarations cause the declared type names to be entered into the symbol table. ? Type names are associated with attributes (like scope) in the symbol table. typedef struct { double r。 } RealIntRec。 Compiler Theory Fall 2021 Jianhui Yue Recursive Data Types ? Recursive data types include lists, trees, and other structures. ? Languages may or may not permit the direct use of recursion in type declarations. ? C allows recursion only indirectly, through pointers. struct intBST { int val。 }。 vardecl | vardecl vardec id: typeexp typeexp simpletype | structtype simpletype int | bool | real | char | void structtype array [num] of typeexp | record vardecls end | pointer to typeexp | proc(typee
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1