embedded-language

Embedded script languages for PHP?

十年热恋 提交于 2020-02-01 03:14:10
问题 i was wondering if anybody knows of a nice scripting language that can be embedded into php? Javascript would be favorite and although there are several attempts they are either much too shaky/slow/outdated (phpjs, j4p5) or a real pain to get up and running on shared hosts (pecl spidermonkey). The background is: I would like to have a language that is used to control php on the server but it should also support some logic, so yaml, xml or json just isn't enough. I've looked into LUA

Embedded script languages for PHP?

て烟熏妆下的殇ゞ 提交于 2020-02-01 03:14:09
问题 i was wondering if anybody knows of a nice scripting language that can be embedded into php? Javascript would be favorite and although there are several attempts they are either much too shaky/slow/outdated (phpjs, j4p5) or a real pain to get up and running on shared hosts (pecl spidermonkey). The background is: I would like to have a language that is used to control php on the server but it should also support some logic, so yaml, xml or json just isn't enough. I've looked into LUA

How to use JPL (bidirectional Java/Prolog interface) on windows?

不羁的心 提交于 2020-01-13 10:17:14
问题 I'm interested in embedding a Prolog interpreter in Java. One option is using JPL, but the download links on the JPL site are broken, and the installation page mentions a jpl.zip that I can't find. I downloaded SWI-Prolog which seems to include JPL (it lists it as a component when installing), but I'm still not sure how I'd use it along with Java. Any ideas on how to use JPL on Windows? Is there another library I could use to achieve the same thing? I've come across a few but they don't seem

Calling python from a c++ program for distribution

旧巷老猫 提交于 2019-12-27 18:24:05
问题 I would like to call python script files from my c++ program. I am not sure that the people I will distribute to will have python installed. Basically I'm looking for a .lib file that I can use that has an Apache like distribution license. 回答1: Boost has a python interface library which could help you. Boost.Python 回答2: I would like to call python script files from my c++ program. This means that you want to embed Python in your C++ application. As mentioned in Embedding Python in Another

What replacements are available for vbscript in an application?

强颜欢笑 提交于 2019-12-22 14:44:46
问题 An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5 The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program to parse multiple .vbs files and produce a list of all of the subroutines and functions - which were then available within the application alongside core functions. Previously this was an embedded msscript.ocx - in the first .Net conversion, this

What replacements are available for vbscript in an application?

♀尐吖头ヾ 提交于 2019-12-22 14:44:12
问题 An application I maintain has been around since VB6 days - ported to .Net 1.1, and now being updated/rewritten across to .Net 3.5 The application provides a mechanism to run VBScripts - this was done in a highly integrated way - allowing the program to parse multiple .vbs files and produce a list of all of the subroutines and functions - which were then available within the application alongside core functions. Previously this was an embedded msscript.ocx - in the first .Net conversion, this

Embedded Lua “print” not working in debug mode from Visual Studio

与世无争的帅哥 提交于 2019-12-19 09:56:14
问题 I am using Luainterface 2.0.3 to embed Lua in a c# application. Everything is working fine, except in visual Studio's debug mode, the Lua's print function does not get written to the console (nor to Output). using System; using LuaInterface; namespace Lua1 { class Program { static void Main(string[] args) { Lua lua = new Lua(); lua.DoString("print 'Hello from Lua!'"); } } } Running it in non debugging mode, print is working fine. Am I missing something? Thanks! 回答1: Unfortunately, you are

python object to native c++ pointer

这一生的挚爱 提交于 2019-12-19 04:17:07
问题 Im toying around with the idea to use python as an embedded scripting language for a project im working on and have got most things working. However i cant seem to be able to convert a python extended object back into a native c++ pointer. So this is my class: class CGEGameModeBase { public: virtual void FunctionCall()=0; virtual const char* StringReturn()=0; }; class CGEPYGameMode : public CGEGameModeBase, public boost::python::wrapper<CGEPYGameMode> { public: virtual void FunctionCall() {

Embedded scripting engine for DSL

寵の児 提交于 2019-12-14 01:16:14
问题 I'm working on a project which needs an embedded DSL to fullfill its expected requirements. The DSL would be user defined event based. Here goes a mockup of the desired syntax: user-defined-event-1 { // event body } user-defined-event-2 { // event body } Probably, most similar language I know based on events is LSL (from Second Life). So, after reading other similar questions on SO, I would like to ask for the best embeddable scripting engine (Ruby, Lua, Python, etc) on C++ (I work in Qt)

Pros/cons of embedded scripting environments?

旧城冷巷雨未停 提交于 2019-12-12 12:27:02
问题 There are several scripting environments available for .NET applications (e.g.this post). My question is, what are the pros/cons of using each of them? Examples include (but not limited to) PowerShell IronPython Lua JavaScript I am trying to decide which scripting tool to use in scientific applications to allow expert users to interact with complicated models such that they can create new algorithms. 回答1: I don't have experience embedding Powershell, but I'm going to assume it's a lot like