embedded-language

Embedding XQuery in Java

Hi 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 ...

Embedded Python - Blocking operations in time module

Hi all, I'm developing my own Python code interpreter using the Python C API, as described in the Python documentation. I've taken a look on the Python source code and I tried to follow the same steps that are carried out in the standard interpreter when executing a py file. These steps (sequence of C API function calls) are basically: ...

Can I use zipimport to ship a embedded python?

Currently I deploy a full python distribution (the original python 2.7 msi) with my app. Is a embebed web server, made with delphi. Reading http://www.python-forum.org/pythonforum/viewtopic.php?f=1&t=18623 I wonder if is possible to use this for embed the necessary python files with my app, to decrease load files and avoid conflict...

Embedded language: Lua vs Common Lisp (ECL)

Does anybody here have a experience with Common Lisp as a embedded language (using ECL)? If so, how good is ECL compared to Lua? ...

Any tutorial for embedding Clang as script interpreter into C++ Code?

I have no experience with llvm or clang, yet. From what I read clang is said to be easily embeddable Wikipedia-Clang, however, I did not find any tutorials about how to achieve this. So is it possible to provide the user of a c++ application with scripting-powers by JIT compiling and executing user-defined code at runtime? Would it be po...

Embedding a Prolog engine in Obj-C projects

Hi all, I'm looking for a light-weight Prolog engine to be embedded in an Obj-C application under Mac OSX. In Java there are some excellent implementations with the characteristics I need: deployability, lightness, dynamic configurability, integration with Java and ease of interoperability. Can you recommend something similar in C/C++? ...

Looking for an embeddable scripting language for C++ with 64-bit support and Cross Platform

I'm looking for a scripting language that works on 32-bit and 64-bit machines as well as on Windows and Linux. I will be embedding it into a C++ application so I prefer it to be natively written in C++ rather than C. I also would prefer the script to have thread/asynchronous support. So far the languages that I have looked at are GameM...

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

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...

How to import a closure from groovy to java?

I'm trying to extract a closure from a groovy script. I define the closure as def printMe = {str ->println str} in my groovy file, and then try to use it by grabbing it from the binding as follows: GroovyScriptEngine gse = new GroovyScriptEngine(new String[] { "scripts" }); Binding binding = new Binding(); gse.run("test.groovy", bin...

How do I dynamically load a Clojure script from outside of my classpath from java?

I wish to enable user defined Clojure scripts to interact with my Java App. The problem is, I don't know in advance where the Clojure scripts will be located, so I can't include them in my classpath when running the app. How do I dynamically load a Clojure script from outside of my classpath? I've tried the simple example: RT.loadReso...

How to embed LLVM?

As I understand, the LLVM Core project consists of: Compiler - converts my source code to LLVM IR VM - executes the compiled IR code How can I embed this VM to my C++ application? ...

Lua in Visual Basic.net

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 Butto...

Python vs Lua for embedded scripting/text processing engine

For a project I'm currently working on, I'm looking to embed a scripting engine into my C++ code to allow for some extensibility down the line. The application will require a fair amount of text processing and the use of regular expressions within these scripts. I know Lua is generally the industry darling when it comes to embedded scr...

How can I dynamically load perl extensions in an embeded perl interpreter?

I am embeding perl interpreter in my C code (what fun!). I need to dynamically load perl extensions (an extension that extends perl, written in C). When I run a perl script (using my embeded perl interpreter) that needs to use that extension, it will work! ...

Maintaining a Python Object when embedding in C

Due to refactoring/reworking on a controller I've had to embed a Python Interpreter inside a C application. I can now call python functions and pass/get Objects into Python fine. The python code is a controller for a robot (currently simulated), this now needs make use of some C code for comparisons I'm making. Previously the Python ...

C++ and Embedded Python - NUL Terminated Strings

I'm working on embedding Python 2.6 into an existing c++ application. So far I have the Libraries linked in and am able to successfully initialize the Python Interpreter and can also transfer data to Python. I'm having trouble retrieving it, and hope someone can steer me the right direction. I'm working with this: Py_Initialize(); p...

Embedding Python thread safe

Hi everyone, I'm trying to use Python in a module for an analysis software of vehicle bus systems. For this I have to embed Python in a thread safe manner, since there can be multiple instances of the module witch work independently. I could use a mutex to guard all access to Python and create an unique (python) module for every thread...

Dynamic user control over variables (embedded language?)

Hi, I'm creating a piece of software (written in C#, will be a windows application) and I ran into this problem- I've got a set of variables, and I need to allow the user to define a wide range of mathematical functions on those variables. But my users don't necessarily have to have any prior knowledge about programming. The options ...