节点文献

工业机器人解释器的设计与实现

Design and Implementation of Interpreter for Industrial Robot

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

【作者】 王福印吕常魁

【Author】 WANG Fuyin;LU Changkui;College of Mechanical and Electrical Engineering,Nanjing University of Aeronautics and Astronautics;

【机构】 南京航空航天大学机电学院

【摘要】 为降低解释器算法复杂度,提高解释效率,针对工业机器人语言结构简单、形式固定等特点,提出了两遍扫描的解释模式。首次扫描应用PCRE正则表达式实现语法、词法的快速检测,建立各指令处理模块并生成关键字表;二次扫描过程中,采用双向链表结构形式进行指令管理,通过关键字表查询快速跳转至相应处理函数,完成语义分析、信息提取及目标代码的生成。实验结果表明,该解释器运行稳定可靠,具有较高执行效率。

【Abstract】 In view of simple structure and fixed format features of industrial robot language,the two-pass scan interpretlve mode is proposed,which is used to reduce complexity of the interpretive mode and improve its efficiency. The PCRE regular expression is utilized to realize fast detection of morphology and grammar. Firstly,the command processing module is set up to generate the keywords set. Then,in the second scan process,double linked list is adopted,which is used to do the instruction management. Finally,the related handling function is skipped by keywords query table to finish semantic analysis,information extraction and target code generation. The testing result shows the proposed interpreter is reliable and high efficient in its operation.

  • 【文献出处】 机械制造与自动化 ,Machine Building & Automation , 编辑部邮箱 ,2018年03期
  • 【分类号】TP242.2
  • 【被引频次】5
  • 【下载频次】106
节点文献中: 

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

本文的引文网络