词法分析 1 试验目的 设计,编制并调试一个此法分析程序,加深对此法分原理的理解. 2 试验要求 1)待分析的简单语言的词法 * 关键字: begin if then while do end 所有关键字都是小写. 2)运算符和界符: : = + * - / < <= <> > >= = ( ) # 3)其他单词是标识符(ID)和整数型常数(NUM),通过一下正规式定义: ID=letter (letter|digit)* NUM=digit digit* 4)空格由空白,制表符和换行符组成,空格一般用来分隔ID,NUM,运算符,界符和关键字,此法分析阶段通常被忽略. 3 各种单词符号对应的种别码如表所示
上传时间: 2017-01-08
上传用户:dongqiangqiang
学习Verilog语言必备资料,包括语法总结 编写Verilog HDL 源代码的标准及设计流程
上传时间: 2017-01-08
上传用户:colinal
从C语言到CPU的指令设计,设计了一个基本的CPU指令集
上传时间: 2014-01-05
上传用户:气温达上千万的
第一章 Java语言的产生及其特点 第二章 Java程序开发与运行环境 第三章 Java程序设计基础 第四章 Java应用程序的基本框架 第五章 Java的类 第六章 Java图形用户接口 第七章 多线程 第八章 Java的"异常" 第九章 Java输入输出操作
上传时间: 2014-01-24
上传用户:1079836864
基于Verilog HDL的VGA驱动程序设计
上传时间: 2014-12-03
上传用户:ljt101007
基于Verilog HDL的流水灯程序设计
上传时间: 2013-12-03
上传用户:黑漆漆
基于Verilog HDL的数码管程序设计
上传时间: 2014-01-07
上传用户:zxc23456789
C语言版数据结构的课程设计 关于八皇后问题的 源代码及报告说明书
上传时间: 2013-12-19
上传用户:jeffery
数据结构的课程设计 共18页 基于C语言
上传时间: 2014-10-14
上传用户:372825274
动物特性的面向对象描述,使用java语言的面向对象设计
上传时间: 2013-12-23
上传用户:sclyutian