节点文献

用于单片机测控装置的微型脚本解释器

Tiny Script Interpreter for the MCU Based Measurement Device

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

【作者】 何岭松赖红

【Author】 HE Ling-song,LAI Hong(College of Mechanical Engineering,Huazhong University of Science and Technology,Wuhan 430074,China)

【机构】 华中科技大学机械工程学院华中科技大学机械工程学院 湖北武汉430074湖北武汉430074

【摘要】 提出了一种用于单片机测控装置的可裁减的微型脚本语言解释器.为便于控制脚本语言解释器的大小,将脚本语言解释器分解为一组独立的脚本命令解释器模块和一个脚本命令解释器容器.每个脚本命令解释器可以解析和执行一句脚本命令,脚本命令解释器容器则提供一个插件框架将脚本命令解释器模块装配在一起.根据目标测控装置所用到的脚本命令选择所需脚本命令解释器模块,就可以设计出量身定做的微型脚本解释器.为便于概念理解,文中以BA S IC句法的简单脚本语言为例,对脚本命令解释器容器和脚本命令解释器的设计方法进行了介绍.

【Abstract】 A tiny scalable script interpreter that targets at the MCU based measurement device is proposed.To make the size of the script interpreter controllable,the interpreter is separated into a command parser container and a series of independent command parsers.Each command parser can interpret and execute a script command,and the container has a plug-in framework to assemble independent command parsers.Selecting desired command parsers by the needed script commands of a target measurement device,a tiny script interpreter that just fits the need of application can be built.To expose the concepts,a simple script language of BASIC grammars is taken as an example to show the design procedures of the container and the command parser.

【基金】 国家863计划资助项目(2001AA423230);国家自然科学基金资助项目(50275061)
  • 【文献出处】 测试技术学报 ,Journal of Test and Measurement Technology , 编辑部邮箱 ,2006年02期
  • 【分类号】TP368.12
  • 【被引频次】6
  • 【下载频次】145
节点文献中: