可嵌入C++的脚本语言的设计与实现  被引量:4

Design and Implementation of C ++ Embeddable Scripting Language

在线阅读下载全文

作  者:鄢涛 曾谊[1] 孟飞 刘永红 赵卫东 叶安胜[1,2] YAN Tao;ZENG Yi;MENG Fei;LIU Yonghong;ZHAO Weidong;YE Ansheng(School of Information Science and Engineering, Chengdu University, Chengdu 610106,China;Key Laboratory of Pattern Recognition and Intelligent Information Processing of Sichuan Province, Chengdu University, Chengdu 610106, China)

机构地区:[1]成都大学信息科学与工程学院,四川成都610106 [2]成都大学模式识别与智能信息处理四川省高校重点实验室,四川成都610106

出  处:《成都大学学报(自然科学版)》2018年第4期402-406,共5页Journal of Chengdu University(Natural Science Edition)

基  金:四川省科技厅软件科学研究计划(2017ZR0198)资助项目

摘  要:作为一种编译型程序设计语言,C++程序更新后往往需要重新编译,所以一些经常变动的业务逻辑需要搭配脚本语言.设计了一种面向对象的弱类型脚本语言,并为其开发可嵌入C++程序的解释器.该脚本语言有着与C++类似的语法,只要该脚本语言的函数被注册到解释器中,就可以随意调用C++中的函数,保证了脚本语言的强大功能,降低C++项目的维护难度.C++is a compiled programming language.When the C++program is updated,recompilation isneeded.Therefore,some business logic that changes a lot needs to be completed with the help of scripting language.In order to solve these problems,this paper designs and implements a weakly-typed scripting programming language and corresponding interpreter which could be embedded in C++program.The new scripting languagehas the similar grammar as C++.As long as the functions of the scripting language are registered in the interpreter,the functions of C++can be randomly used,which guarantees the powerful function of the scriptinglanguage and reduces the maintenance difficulty.

关 键 词:脚本语言 C++ 解释器 弱类型 可嵌入 

分 类 号:TP312[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象