高级检索

混合式弧焊机器人语言编译解释系统

Compiling and interpreting system of hybrid arc welding robot language

  • 摘要: 开发了混合式弧焊机器人语言(hybridarcweldingrobotlanguage,HAWRL)编译解释系统。通过分析源代码、目标代码的特点,提出了由词法/语法分析、语义分析、错误处理、符号表管理及代码生成五个阶段构成的编译解释系统体系结构。在对HAWRL关键词进行分类的基础上,开发了词法/语法分析、语义分析和目标代码生成模块。并对HAWRL源程序进行了编译解释试验。结果表明,开发的编译解释系统不但能正确地把HAWRL源程序解释为PAMC运动程序,而且为用户对错误程序的调试与修改提供了最大程度帮助。

     

    Abstract: The compiling and interpreting system of hybrid arc welding robot language(HAWRL)was developed. Firstly, by analyz-ing the characteristics of source code and object code, the architec-ture of compiling and interpreting system, which includes morpholo-gy/syntax analysis, semantic analysis, error handling, symbol table manager and object code generation, was presented. Secondly, on the base of classifying key words of HAWRL, three module of the mor-phology/syntax analysis, semantic analysis and object code generation are developed. At last, experiment was executed to compile and in-terpret HAWRL programs that obtained from all kinds of methods. The results show that the compiling and interpreting system not only can compile HAWRL program to PMAC motion program correctly, but also can help user to debug and revise the source program with errors efficiently.

     

/

返回文章
返回