minic:KAIST CS420编译器设计

上传者: 42131352 | 上传时间: 2022-12-20 17:32:14 | 文件大小: 448KB | 文件类型: ZIP
Mini-C 编译器 KAIST CS420 编译器设计 2015 Spring 20130598 郑允宗 如何使用 要求 Java Java 制作 get 柏油 设置 make install make make test 跑步 ./mcc tests/inputs/sample_avg.c ./mcc < input_file.c 取决于 JFlex 杯子 语义检查 这些被认为是错误: 使用未声明的变量。 在同一个作用域中声明同名变量。 非整数数组索引。 索引非数组变量。 使用没有索引的数组。 函数不返回值。 带有不兼容类型参数的函数调用(例如 int[])。 这些会产生警告: 分配不同类型的值。 带有可转换类型参数的函数调用(例如,int 的 float)。 返回不同类型的值。 不同类型的表达式之间的算术/比较运算。 注意比较结果(>, <, >=,

文件下载

资源详情

[{"title":"( 88 个子文件 448KB ) minic:KAIST CS420编译器设计","children":[{"title":"minic-develop","children":[{"title":".gitignore <span style='color:#111;'> 85B </span>","children":null,"spread":false},{"title":"Makefile <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"machine","children":[{"title":"mac-T <span style='color:#111;'> 111.19KB </span>","children":null,"spread":false},{"title":"linux-T <span style='color:#111;'> 893.30KB </span>","children":null,"spread":false},{"title":"test.c <span style='color:#111;'> 657B </span>","children":null,"spread":false},{"title":"square.T <span style='color:#111;'> 2.07KB </span>","children":null,"spread":false}],"spread":true},{"title":"src","children":[{"title":"symbol","children":[{"title":"Scope.java <span style='color:#111;'> 1.54KB </span>","children":null,"spread":false},{"title":"SymbolTable.java <span style='color:#111;'> 2.08KB </span>","children":null,"spread":false},{"title":"Symbol.java <span style='color:#111;'> 1.52KB </span>","children":null,"spread":false}],"spread":true},{"title":"parser","children":[{"title":"parser.cup <span style='color:#111;'> 9.23KB </span>","children":null,"spread":false},{"title":"Driver.java <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"lexer.flex <span style='color:#111;'> 3.79KB </span>","children":null,"spread":false}],"spread":true},{"title":"ast","children":[{"title":"CaseBlock.java <span style='color:#111;'> 758B </span>","children":null,"spread":false},{"title":"Node.java <span style='color:#111;'> 2.09KB </span>","children":null,"spread":false},{"title":"Assign.java <span style='color:#111;'> 1.93KB </span>","children":null,"spread":false},{"title":"CallExpr.java <span style='color:#111;'> 4.01KB </span>","children":null,"spread":false},{"title":"IdExpr.java <span style='color:#111;'> 1.08KB </span>","children":null,"spread":false},{"title":"SwitchStmt.java <span style='color:#111;'> 916B </span>","children":null,"spread":false},{"title":"WhileStmt.java <span style='color:#111;'> 1.44KB </span>","children":null,"spread":false},{"title":"Expr.java <span style='color:#111;'> 340B </span>","children":null,"spread":false},{"title":"IntNum.java <span style='color:#111;'> 620B </span>","children":null,"spread":false},{"title":"Function.java <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false},{"title":"EmptyStmt.java <span style='color:#111;'> 204B </span>","children":null,"spread":false},{"title":"CallStmt.java <span style='color:#111;'> 360B </span>","children":null,"spread":false},{"title":"TypeInfo.java <span style='color:#111;'> 654B </span>","children":null,"spread":false},{"title":"DeclList.java <span style='color:#111;'> 529B </span>","children":null,"spread":false},{"title":"SourceManager.java <span style='color:#111;'> 805B </span>","children":null,"spread":false},{"title":"ParamList.java <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"StmtList.java <span style='color:#111;'> 690B </span>","children":null,"spread":false},{"title":"AssignStmt.java <span style='color:#111;'> 376B </span>","children":null,"spread":false},{"title":"DefaultBlock.java <span style='color:#111;'> 618B </span>","children":null,"spread":false},{"title":"CompoundStmt.java <span style='color:#111;'> 900B </span>","children":null,"spread":false},{"title":"BinOpExpr.java <span style='color:#111;'> 3.48KB </span>","children":null,"spread":false},{"title":"TypeCast.java <span style='color:#111;'> 667B </span>","children":null,"spread":false},{"title":"Pos.java <span style='color:#111;'> 655B </span>","children":null,"spread":false},{"title":"UnOpExpr.java <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"FloatNum.java <span style='color:#111;'> 507B </span>","children":null,"spread":false},{"title":"ForStmt.java <span style='color:#111;'> 1.27KB </span>","children":null,"spread":false},{"title":"FuncList.java <span style='color:#111;'> 586B </span>","children":null,"spread":false},{"title":"Declaration.java <span style='color:#111;'> 1.13KB </span>","children":null,"spread":false},{"title":"Stmt.java <span style='color:#111;'> 195B </span>","children":null,"spread":false},{"title":"IfStmt.java <span style='color:#111;'> 1.61KB </span>","children":null,"spread":false},{"title":"ArrayIndexExpr.java <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"CaseList.java <span style='color:#111;'> 1.76KB </span>","children":null,"spread":false},{"title":"Identifier.java <span style='color:#111;'> 996B </span>","children":null,"spread":false},{"title":"RetStmt.java <span style='color:#111;'> 1.05KB </span>","children":null,"spread":false},{"title":"Program.java <span style='color:#111;'> 2.48KB </span>","children":null,"spread":false},{"title":"Printer.java <span style='color:#111;'> 834B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"README.md <span style='color:#111;'> 2.36KB </span>","children":null,"spread":false},{"title":"tests","children":[{"title":"outputs","children":[{"title":"decl.py <span style='color:#111;'> 19B </span>","children":null,"spread":false},{"title":"read.py <span style='color:#111;'> 82B </span>","children":null,"spread":false},{"title":"switch.py <span style='color:#111;'> 67B </span>","children":null,"spread":false},{"title":"if.py <span style='color:#111;'> 47B </span>","children":null,"spread":false},{"title":"expr.py <span style='color:#111;'> 62B </span>","children":null,"spread":false},{"title":"assignret.py <span style='color:#111;'> 46B </span>","children":null,"spread":false},{"title":"call.py <span style='color:#111;'> 50B </span>","children":null,"spread":false},{"title":"loop.py <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"error.py <span style='color:#111;'> 274B </span>","children":null,"spread":false},{"title":"type_call.py <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"type.py <span style='color:#111;'> 210B </span>","children":null,"spread":false},{"title":"decl_bad.py <span style='color:#111;'> 92B </span>","children":null,"spread":false},{"title":"return.py <span style='color:#111;'> 163B </span>","children":null,"spread":false},{"title":"sample_avg.py <span style='color:#111;'> 69B </span>","children":null,"spread":false},{"title":"scope.py <span style='color:#111;'> 74B </span>","children":null,"spread":false},{"title":"type_control.py <span style='color:#111;'> 170B </span>","children":null,"spread":false},{"title":"library.py <span style='color:#111;'> 60B </span>","children":null,"spread":false}],"spread":false},{"title":"run.py <span style='color:#111;'> 2.22KB </span>","children":null,"spread":false},{"title":"tests.txt <span style='color:#111;'> 120B </span>","children":null,"spread":false},{"title":"inputs","children":[{"title":"if.c <span style='color:#111;'> 239B </span>","children":null,"spread":false},{"title":"read.c <span style='color:#111;'> 186B </span>","children":null,"spread":false},{"title":"expr.c <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"scope.c <span style='color:#111;'> 273B </span>","children":null,"spread":false},{"title":"type_call.c <span style='color:#111;'> 341B </span>","children":null,"spread":false},{"title":"loop.c <span style='color:#111;'> 224B </span>","children":null,"spread":false},{"title":"decl.c <span style='color:#111;'> 45B </span>","children":null,"spread":false},{"title":"sample_avg.c <span style='color:#111;'> 472B </span>","children":null,"spread":false},{"title":"decl_bad.c <span style='color:#111;'> 60B </span>","children":null,"spread":false},{"title":"input.c <span style='color:#111;'> 86B </span>","children":null,"spread":false},{"title":"assignret.c <span style='color:#111;'> 87B </span>","children":null,"spread":false},{"title":"library.c <span style='color:#111;'> 152B </span>","children":null,"spread":false},{"title":"return.c <span style='color:#111;'> 99B </span>","children":null,"spread":false},{"title":"switch.c <span style='color:#111;'> 339B </span>","children":null,"spread":false},{"title":"error.c <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"type_control.c <span style='color:#111;'> 271B </span>","children":null,"spread":false},{"title":"type.c <span style='color:#111;'> 150B </span>","children":null,"spread":false},{"title":"call.c <span style='color:#111;'> 381B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"install-lib.sh <span style='color:#111;'> 809B </span>","children":null,"spread":false},{"title":"mcc <span style='color:#111;'> 111B </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明