# compiling-system-lab3 **Repository Path**: LouisJiangjing/compiling-system-lab3 ## Basic Information - **Project Name**: compiling-system-lab3 - **Description**: 哈工大2022年春编译原理实验三 - **Primary Language**: C - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2022-04-09 - **Last Updated**: 2022-06-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: 课程实验 ## README # compiling-system-lab3 ## 介绍 哈工大2022年春编译原理实验三 ## 目录 doc 文档 simulartor irsim虚拟机小程序 src 源代码 interim.c 中间代码实现文件 interim.h 中间代码头文件 lexical.l 词法分析文件 main.c 主函数入口 Makefile make文件 node.h 分析树节点头文件 parser 分析器(最终需要的文件) semantic.c 语义分析实现文件 semantic.h 语义分析头文件 syntax.y 语法分析文件 test 测试文件及其输出 .c 测试文件 .ir 输出文件 ## 使用说明 1.进入src文件夹 2.`make` #编译源程序 3.`make clean` #清除不需要的中间文件 4.`make test` #一次性测试所有测试用例,由于实验3我没有实现要求3.1和3.2,因此除了test1.c和test2.c都没有ir文件输出,只有命令行错误提示 5.运行虚拟机小程序 `make irsim` **注:步骤2-4可以使用`make once`一键执行**