目录
第 一 章 概述........................................................................................................................................1
1.1 设计目的...................................................................................................................................1
1.2 设计任务内容..........................................................................................................................1
1.3 编译过程...................................................................................................................................1
第 二 章 环境部署................................................................................................................................3
第 三 章 需求分析................................................................................................................................3
第 四 章 总体设计................................................................................................................................3
第 五 章 详细设计................................................................................................................................3
5.1 分析 c 源程序 (必做任务) ...................................................3
5.1.1 任务要求 ..............................................................................................................................3
5.1.2 实现代码 ..............................................................................................................................3
5.1.3 测试数据 ..............................................................................................................................4
5.1.4 运行结果截图 ......................................................................................................................4
5.2 C 语言程序(选做任务) ........................................................4
5.2.1 任务要求 ..............................................................................................................................4
5.2.2 实现代码 ..............................................................................................................................4
5.2.3 测试数据 ..............................................................................................................................5
5.2.4 运行结果截图 ......................................................................................................................5
5.3 C++语言程序(选做任务).......................................................6
5.3.1 任务要求 ..............................................................................................................................6
5.3.2 实现代码 ..............................................................................................................................6
5.3.3 测试数据 ..............................................................................................................................6
5.3.4 运行结果截图 ......................................................................................................................6
5.4 算式分割(选做任务) ..........................................................7
5.4.1 任务要求 ..............................................................................................................................7
5.4.2 实现代码 ..............................................................................................................................7
5.4.3 测试数据 ..............................................................................................................................8
5.4.4 运行结果截图 ......................................................................................................................8
5.5 检查关键字与标识符程序(选做任务) ............................................8
5.5.1 任务要求 ..............................................................................................................................8
5.5.2 实现代码 ..............................................................................................................................8
5.5.3 测试数据 ..............................................................................................................................9
5.5.4 运行结果截图 ......................................................................................................................9
5.6 Pig latin 程序(选做任务).......................................................9
5.6.1 任务要求 ..............................................................................................................................9
5.6.2 实现代码 ............................................................................................................................10
5.6.3 测试数据 ............................................................................................................................11
5.6.4 运行结果截图 ....................................................................................................................11
5.7 实现 C++语言的词法分析程序 (选做任务) .....................................11
5.7.1 任务要求 ............................................................................................................................11
5.7.2 实现代码 ............................................................................................................................12
5.7.3 测试数据 ............................................................................................................................12
5.7.4 运行结果截图 ....................................................................................................................13
5.8 使用 Flex 和 Bison 编写代码实现四则运算 (选做任务)....................................................13
5.8.1 任务要求 ............................................................................................................................13
5.8.2 实现代码 ............................................................................................................................13
5.8.3 测试数据 ............................................................................................................................14
六、课设总结........................................................................................................................................15
参考文献 .....................................................................................................................................................16
评分表:................................................................................................................................................17
评论0
最新资源