1 / 12
文档名称:

编译原理 词法分析器论文精要.doc

格式:doc   页数:12页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

编译原理 词法分析器论文精要.doc

上传人:今晚不太方便 2016/5/25 文件大小:0 KB

下载得到文件列表

编译原理 词法分析器论文精要.doc

文档介绍

文档介绍:XX 大学学生课程设计(论文) 题目: 关于词法分析器的实现学号: 姓名: 专业年级: 12 计科 2班教师姓名: 2015 年6月 15日摘要词法分析器是通过词法分析程序对构成源程序的字符串从左到右的扫描, 逐个字符地读入源程序字符并按照构词规则切分成一个一个具有独立意义的单词。并确定其属性(如保留字、标识符、运算符、界限符和常量等)。再把它们转换称长度统一的标准形式——属性字( TOKEN )。而词法分析器的功能是输入源程序,输出单词符号,并且词法分析器有两种处理结构:一种是把词法分析器作为主程序; 另一种是把词法分析器作为语法分析程序调用的子程序。本文所要介绍的词法分析器是第一种,把它作为主程序。关键词:词法分析编译原理 Abstract Lexer is through lexical analysis procedures constitute a source string isscanned from left to right, to read in source code characters and character-by-character in accordanc ew ith the rules of word formation of independentsignificance into one word. And if the property (as reserved words,identifiers, operators, boundaries, and constants, and so on). Then unified them said the length ofa standard form--property words (TOKEN). LexicalAnalyzer function is the input source, output Word symbols, and lexicalanalyzer has two structures: one is the lexical analyzer as main program;the other is the parser calls the lexical analyzer programs. The lexicalanalyzer is the first tobe introduced in this article, use it as the mainprogram. Keywords : lexical piler construction principles 目录 1 课程设计的基本分析..................................................................................................................... 5 词法分析器的概述............................................................................................................. 5 课程设计的内容.................................................................................................................. 5 课程设计的内容.................................................................................................................. 5 课程设计的要求.................................................................................................................. 5 开发工具的选用.................................................................................................................. 6 2 词法分析模块设计...........................................................................................................