首页> 外文会议>International Conference on Information Management, Innovation Management and Industrial Engineering >The research of applying regular grammar to making model for lexical analyzer
【24h】

The research of applying regular grammar to making model for lexical analyzer

机译:将规则语法应用于词法分析器模型的研究

获取原文

摘要

Lexical analyzer is an important software. A lexical analyzer can be used to do lexical analyzing in many kinds of software such as language compiler and document editor. The traditional method of constructing lexical analyzer is very tedious. In this article, a new method of constructing lexical analyzer was proposed, the key point of which is making lexical model for lexical analyzer. The regular grammar can be used to make lexical model for lexical analyzer by which the lexical grammar of a language can be described properly. In order to make lexical analyzing, a control program should be constructed to process the lexical model. The lexical analyzer consists of the lexical model and the control program. By example, the method of constructing lexical analyzer was correct and effective.
机译:词法分析器是重要的软件。词法分析器可用于许多软件(例如语言编译器和文档编辑器)中的词法分析。构建词法分析器的传统方法非常繁琐。本文提出了一种构建词法分析器的新方法,其重点是为词法分析器建立词法模型。可以使用常规语法为词法分析器建立词法模型,从而可以正确描述语言的词法语法。为了进行词法分析,应该构建一个控制程序来处理词法模型。词法分析器由词法模型和控制程序组成。举例来说,构建词法分析器的方法是正确有效的。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号