编译原理实验1(同名23813).docVIP

  • 2
  • 0
  • 约1.01万字
  • 约 15页
  • 2019-10-15 发布于湖北
  • 举报
天津理工大学实验报告 学院(系)名称:计算机与通信工程学院 姓名 学号 专业 班级 实验项目 实验一:词法分析器 课程名称 编译原理 课程代码 实验时间 实验地点 批改意见 成绩 教师签字: 实验内容:实现标准C语言词法分析器。 实验要求: (1)单词种别编码要求 基本字、运算符、界符:一符一种 标识符:统一为一种; 常量:按类型编码; (2)词法分析工作过程中建立符号表、常量表。 并以文本文件形式输出。 词法分析的最后结果以文本文件形式输出。 三、实验代码: 输入的程序: package com.example; public class WordList { private int row; private int type; private int number; private String str; public WordList() { super(); // TODO Auto-generated constructor stub } public WordList(int row, int type, int number, String str) { super(); this.row = row; this.type = type; this.number = nu

文档评论(0)

1亿VIP精品文档

相关文档