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

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

  1. 1、本文档共5页,可阅读全部内容。
  2. 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
2006 年 第20 卷 第2 期 测 试 技 术 学 报 . 20  . 2 2006 V o l N o (总第56 期) JOURNAL OF TEST AND M EASUREM ENT TECHNOLOGY (Sum N o. 56) 文章编号: (2006) 用于单片机测控装置的微型脚本解释器 何岭松, 赖 红 (华中科技大学 机械工程学院, 湖北 武汉 430074) 摘 要:  提出了一种用于单片机测控装置的可裁减的微型脚本语言解释器. 为便于控制脚本语言解释器的 大小, 将脚本语言解释器分解为一组独立的脚本命令解释器模块和一个脚本命令解释器容器. 每个脚本命 令解释器可以解析和执行一句脚本命令, 脚本命令解释器容器则提供一个插件框架将脚本命令解释器模块 装配在一起. 根据 目标测控装置所用到的脚本命令选择所需脚本命令解释器模块, 就可以设计出量身定做 的微型脚本解释器. 为便于概念理解, 文中以BA S IC 句法的简单脚本语言为例, 对脚本命令解释器容器和 脚本命令解释器的设计方法进行了介绍. 关键词:  脚本语言; 解释器; 可裁减; 单片机; 测控装置; BA S IC 语言 中图分类号:  T P 314  文献标识码: A Tiny Scr ipt In terpreter for the M CU Based M easurem en t D ev ice H E L ingsong, LA I Hong (Co llege of M echanical Engineering, H uazhong U niversity of Science and T echno logy, W uhan 430074, Ch ina) Abstract:  A tiny scalab le scrip t in terp reter that targets at the M CU based m easu rem en t device is p ropo sed. To m ake the size of the scrip t in terp reter con tro llab le, the in terp reter is separated in to a comm and parser con tainer and a series of independen t comm and parsers. Each comm and parser can in terp ret and execu te a scrip t comm and, and the con tainer has a p lug in fram ew o rk to assem b le . independen t comm and parsers Selecting desired comm and parsers by the needed scrip t comm ands of a target m easu rem en t device, a tiny scrip t in terp reter that j

文档评论(0)

xuefei111 + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档