embedded-language

What is the easiest way to build Python26.zip for embedded distribution?

允我心安 提交于 2019-12-12 09:48:16
问题 I am using Python as a plug-in scripting language for an existing C++ application. I am able to embed the python interpreter as stated in the Python documentation. Everything works successfully with the initialization and de-initialization of the interpreter. I am, however, having trouble loading modules because I have not been able to zip up the standard library in to a zip file (normally PythonXX.zip, corresponding to the version number of the python dll). What is the simplest way to zip up

Lua in Visual Basic.net

a 夏天 提交于 2019-12-11 22:05:35
问题 I'm trying to just get a VB.net app to be able to execute a lua script in a external file, and be able to add some functions to lua too, To do this I have this code: Imports LuaInterface Public Class Form1 Public luascripting As New Lua() Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click luascripting.RegisterFunction("DisplayText", Me, Me.GetType().GetMethod("DisplayText")) luascripting.DoFile("script.lua") End Sub End Class But it

Embedding MS.NET C# into c/c++ (like mono)

别说谁变了你拦得住时间么 提交于 2019-12-11 13:14:11
问题 Is it possible to embed the MS C# compiler into an umanaged c/c++ host application and make both languages interoperate, very much like Mono does this (like here and here)? I have a working implementation of this für my Qt based C++ Application using mono, but I'm limited (I really need the memory) by the 32bit constraint of mono on Windows (there are no 64bit releases for windows). So can this be achived with "the original" C# implementation? BTW: I'd like to continue using GNU compilers

Scala parser combinators for language embedded in html or text (like php)

我与影子孤独终老i 提交于 2019-12-10 11:07:38
问题 I have been playing around with Scala parser combinators for some time now, and learned some of the ways to make it behave nicely and do the most of the things I want, using the built in function. But how do you make an embedded language (like php or ruby's erb)? It requires whitespace to not be ignored, outside the embedding of real code. I managed to make a simple parser that matches all text up to a given regex match, but I am looking for a better, prettier way of doing this. There is

Is it possible to load and execute C# snippets using DLR?

淺唱寂寞╮ 提交于 2019-12-09 06:07:44
问题 The majority of material I have found regarding DLR is related to IronPython. Can you parse and execute C# using DLR? If so is there over head that would prevent you from attempting this on a web server with about 30 users? More specifically I would like to script the configuration of my workflow objects when a user first initiates a workflow. Depending on conditions that change through out the year workflows may start at different steps, hence running configuration scripts seems like a good

Embedding XQuery in Java

我们两清 提交于 2019-12-07 04:41:05
问题 I need to retrieve some details from a MusicXML (xml) file in Java. I managed to read xml files in java - but through a web service (where I have to be online, connected to internet when I'm running my code). I came across XQuery where you can easily extract info from an XML file. But I need to embed XQuery in java (i.e. use xquery in java code), precise without using a web service. Is there any possible way, how I can embed XQuery (reading info from XML file), in java code? Greatly

What is the easiest way to build Python26.zip for embedded distribution?

感情迁移 提交于 2019-12-05 21:17:07
I am using Python as a plug-in scripting language for an existing C++ application. I am able to embed the python interpreter as stated in the Python documentation. Everything works successfully with the initialization and de-initialization of the interpreter. I am, however, having trouble loading modules because I have not been able to zip up the standard library in to a zip file (normally PythonXX.zip, corresponding to the version number of the python dll). What is the simplest way to zip up all of the standard library after optimized bytecode compiling? I'm looking for a simple script or

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

谁说胖子不能爱 提交于 2019-12-05 12:04:58
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 as stable as JPL. JPL is no longer an additional download, so you don't need jpl.zip. If you download

Embedding XQuery in Java

為{幸葍}努か 提交于 2019-12-05 09:17:43
I need to retrieve some details from a MusicXML (xml) file in Java. I managed to read xml files in java - but through a web service (where I have to be online, connected to internet when I'm running my code). I came across XQuery where you can easily extract info from an XML file. But I need to embed XQuery in java (i.e. use xquery in java code), precise without using a web service. Is there any possible way, how I can embed XQuery (reading info from XML file), in java code? Greatly appreciate any insight, suggestions and ideas. Many thanks in advance Use XQJ (XQuery for Java API). There are

Small RISC emulator

穿精又带淫゛_ 提交于 2019-12-05 04:47:17
问题 I'm looking to build a VM into a game and was wondering if anyone knew of any really simple VM's (I was thinking RISC/PIC was close to what I wanted) that are usually used for embedded projects such as controlling robots, motors, sensors, etc. My main concern is having to write a compiler/assembler if I roll my own. I'd be nice to use the tools that are already out there or in its simplest form just a C compiler that can compile for it :-p. I really don't want to re-invent the wheel here but