期刊文献+

工业机器人语言的词法语法分析器研究 被引量:8

Study on the Lexical and Syntactic Analyzer for Industrial Robot Language
下载PDF
导出
摘要 解释器与编译器是把工业机器人语言程序翻译成目标代码的两种主要语言处理器实现技术,但二者的翻译过程都离不开词法语法分析环节。词法分析器主要用于识别语言系统的标识符及关键字等标记,而语法分析器则对这些标记所组成的句子进行语法检查等。高效准确的词法语法分析是实现工业机器人语言程序向可执行目标代码翻译的关键之一。提出以C语言为蓝本的动作级工业机器人语言的体系结构及指令集;采用Parser Generator工具来开发词法语法分析器,运用正则表达式和LR文法来描述扩展工业机器人语言的词法语法规则,并指出了非法格式的错误报告实现。对所开发的可视化分析器进行的实例测试表明,分析结果正确可靠。 The interpreter and the compiler is language processor implementation technology to tranzlate industrial robot programming language into the target code, but both of the tranzlation process is inseparable from the lexical grammar analysis. Lexical analyzer is mainly used for identification of language system identifier and keywords tag; whereas the parser syntax checks on these markers of sentences and so on. One of the key for industrial robot language in the translating from source to executable code is an efficient and accurate lexical and syntactic analyzer. A motion level industrial robot language based on C language is proposed. Parser Generator tool is utilized to develop a lexical and syntactic analyzer. Regular expression and LR grammar are introduced to describe the lexieal and syntactic rule. The implementation of error report on illegal expressions is also discussed. Through test case of robot motion, the lexieal and syntactic analysis result is proved reliable.
出处 《机械设计与制造》 北大核心 2014年第1期209-212,共4页 Machinery Design & Manufacture
基金 国家"863"计划项目(2011AA04A104)
关键词 词法语法分析 工业机器人语言 PARSER GENERATOR 正则表达式 LR文法 Lexieal And Syntactic Analysis Industrial Robot Language Parser Generator Regular Expression LR Grammar
  • 相关文献

参考文献9

二级参考文献27

共引文献17

同被引文献60

引证文献8

二级引证文献10

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部