Choosing embedded scripting language for C++

前端 未结 6 1247
悲哀的现实
悲哀的现实 2021-02-06 03:16

I want to choose an embedded scripting language that i will use on C++. It should connect a database such as Oracle. My host application is a server application. That will pass

6条回答
  •  别那么骄傲
    2021-02-06 03:36

    You might be interested in ObjectScript

    ObjectScript, OS for short, is a new programming language. It's free, cross-platform, lightweight, embeddable and open-source. It combines the benefits of multiple languages, including: JavaScript, Lua, Ruby, Python and PHP. OS features the syntax of Javascripts, the "multiple results" feature from lua, syntactic shugar from Ruby as well as magic methods from PHP and Ruby - and even more!

    Minimal program used ObjectScript could be like this

    #include 
    using namespace ObjectScript;
    int main(int argc, char* argv[])
    {
        OS * os = OS::create(); // craete ObjectScript instance
        os->require("main.os"); // run ObjectScript program
        os->release();          // release the ObjectScript instance
        return 0;
    }
    

提交回复
热议问题