无忧论文网 · 始于1999 · 学术论文辅导与论文发表推荐服务

业务规则引擎词法分析

栏目
论文
具体类型
本科毕业论文
语言
中文
用途
范文参考
更新
关键词
词法分析原词编译原理记号引擎词法
分类标签
自然科学计算机科学计算机专业
原站著录信息
原编号
lw200912311420145715
原文字数
13,620 字
原文件格式
DOC
原库登记日期
2009-12-31

摘要

摘要:编译程序的工作贯穿从输入源程序开始到输出目标程序为止的整个过程,是非常复杂的。一般来说,整个过程可以划分为五个阶段:词法分析、语法分析、中间代码生成、优化和目标代码生成。 本设计即为词法分析阶段。词法分析阶段是编译过程的第一个阶段。这个阶段的任务是从左至右扫描源程序的字符串,按照词法规则(正则文法规则)识别出一个个正确的单词,并转换成该单词相应的二元式(种别码、属性值)交给语法分析使用。 因此,词法分析是编译的基础。执行词法分析的程序称为词法分析器。 词法分析是从输入的源程序中,识别出每个具有独立意义的单词,…

    摘要:编译程序的工作贯穿从输入源程序开始到输出目标程序为止的整个过程,是非常复杂的。一般来说,整个过程可以划分为五个阶段:词法分析、语法分析、中间代码生成、优化和目标代码生成。
    本设计即为词法分析阶段。词法分析阶段是编译过程的第一个阶段。这个阶段的任务是从左至右扫描源程序的字符串,按照词法规则(正则文法规则)识别出一个个正确的单词,并转换成该单词相应的二元式(种别码、属性值)交给语法分析使用。
因此,词法分析是编译的基础。执行词法分析的程序称为词法分析器。
    词法分析是从输入的源程序中,识别出每个具有独立意义的单词,即基本保留字(关键字)、标识符、常数、运算符、分隔符五大类,剔除空格与转义字符,并依次输出各个单词的内部编码及单词符号自身值。
Abstract:Compiler runs through the work started from the source input to output targets procedures of the whole process is very complex. Generally, the whole process can be divided into five phases: lexical analysis, grammar analysis, intermediate code generation, optimization and target code generation.
This is the lexical analysis of the design stage. Lexical analysis stage is to build the first phase of the process. This phase of the mission is scanned from left to right source of the string, in accordance with the rules of morphology (Regular Grammar rules) to identify the correct one word, and converted into the corresponding dual-word (category codes, property values ) To the analysis of the use of grammar. Therefore, the lexical analysis is compiled based. Lexical analysis of the implementation of the procedure known as the lexical analyzer.
Lexical analysis is imported from the source, identify each has an independent significance of the word, namely, the basic reservations about the word (keywords), the identifier, constant, the operator, separators top-five, remove spaces and escape, And the words were out of the internal code words and symbols its own value.

目 录
1. 绪论 1
2. 项目介绍及方案概述 4
3. 业务规则引擎词法分析之过程分析 6
4. 词法分析器的设计与实现 15
5. 总结 31
致谢 32
参考文献 33

全文与附件

提交申请后,可在会员中心查看原件和附件的查找进度。

申请查询全文与附件