节点文献

用LEX构造数控编译器词法分析程序的研究

Research on the Construct of Lexical Analyzer of NC Compiler by LEX

  • 推荐 CAJ下载
  • PDF下载
  • 不支持迅雷等下载工具,请取消加速工具后下载。

【作者】 陈辉郭艳玲

【Author】 CHEN Hui, GUO Yan-ling(The College of Mechtronics Engineering, Northeast Forestry University, Harbin 150040, China)

【机构】 东北林业大学机电工程学院东北林业大学机电工程学院 黑龙江哈尔滨150040黑龙江哈尔滨150040

【摘要】 词法分析程序是数控程序编译器中不可缺少的部分,目前一般采用高级语言直接开发。本文介绍一种新的方法,它利用词法分析程序的自动构造工具LEX(lexical analyser)构造数控程序编译器的词法分析程序。作为一种专用的编译工具,LEX的源程序简单,编译后生成的词法分析程序效率高。在数控编译器的开发中,使用LEX简化了编程序过程,是一种高效的程序设计方法。

【Abstract】 Lexical analysis is an indispensable part of NC program compiler. It is usually developed directly by advanced languages. This paper introduces a kind of new method. Applying LEX (lexical analyzer), an automatic constructor of lexical analysis, construct the lexical analyzer of NC program compiler. Being a special compile tool, the source program of LEX is simple. The compiled lexical analyzer constructed by LEX has high efficiency. During the development of NC compiler, LEX simplifies the programming progress. It is a high-efficiency method of program design.

【关键词】 数控程序编译器词法分析LEX
【Key words】 NC programmecompilerlexical analyzerLEX
  • 【文献出处】 机电工程技术 ,Mechanical & Electrical Engineering Technology , 编辑部邮箱 ,2006年02期
  • 【分类号】TP314
  • 【被引频次】10
  • 【下载频次】237
节点文献中: 

本文链接的文献网络图示:

本文的引文网络