⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 decs

📁 编译原理大作业---tiger编译器 包括semant,translate,mipsframe,regalloc等所有phase 懂的人自会知道
💻
字号:
/* correct declarations */lettype arrtype1 = array of inttype rectype1 = {name:string, address:string, id: int , age: int}type arrtype2 = array of rectype1type rectype2 = {name : string, dates: arrtype1}type arrtype3 = array of stringvar arr1 := arrtype1 [10] of 0var arr2  := arrtype2 [5] of rectype1 {name="aname", address="somewhere", id=0, age=0}var arr3:arrtype3 := arrtype3 [100] of ""var rec1 := rectype1 {name="pluto", address="topolinia", id=1234, age=30}var rec2 := rectype2 {name="gastone", dates=arrtype1 [3] of 1234}inarr1[0] := 1;arr1[9] := 3;arr2[3].name := "tizio";arr2[1].age := 18;arr3[34] := "abc";rec1.name := "abc";rec2.dates[0] := 555;rec2.dates[2] := 555end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -