摘要
作为一种编译型程序设计语言,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.
作者
鄢涛
曾谊
孟飞
刘永红
赵卫东
叶安胜
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)
出处
《成都大学学报(自然科学版)》
2018年第4期402-406,共5页
Journal of Chengdu University(Natural Science Edition)
基金
四川省科技厅软件科学研究计划(2017ZR0198)资助项目
关键词
脚本语言
C++
解释器
弱类型
可嵌入
scripting language
C++
interpreter
weakly-typed
embedded