Anything related to languages (designed to be) embedded in other applications and their implementations. DO NOT use this tag to mark questions related to embedded devices, unless it also relates to embedding a language in a bigger application.
Questions tagged [embedded-language]
84 questions
3
votes
8 answers
Embedded scripting engine for DSL
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 {
…

Dario Castañé
- 1,813
- 3
- 15
- 20
3
votes
4 answers
Embedded Lua "print" not working in debug mode from Visual Studio
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…

Oli
- 1,762
- 3
- 19
- 22
2
votes
1 answer
Interrupt interpreted user code in Silverlight
I'd like to run some arbitrary user code in a Silverlight application. Of course I want to embed a Turing-complete language (easy enough), but don't want to allow the user to lock up their browser if they write some bad (non-terminating) code. I'm…

Nicholas W
- 2,231
- 1
- 14
- 15
2
votes
2 answers
Python embedding -- how to get the if() truth test behavior from C/C++?
I'm trying to write a function to return the truth value of a given PyObject. This function should return the same value as the if() truth test -- empty lists and strings are False, etc.
I have been looking at the python/include headers, but haven't…
Jon Watte
2
votes
0 answers
Can you call `print` from a python function being called from C++?
I am trying to call python function from C++ to do some computation in python. Following is a dummy snippet which reproduces my issue.
def mktUpdate(token):
print("PY : ", token)
return 1
PyObject* pyResult =…

Abhishek Kumar
- 729
- 6
- 20
2
votes
1 answer
Lua C API - loading multiple files with variables and functions of the same names
Say I have two Lua files which I'll be using from the standard Lua C API, that share a common library:
common.lua
function printHello(name)
print("Hello from " .. name)
end
file1.lua
require "common"
local scriptName = "file1"
function…

Addy
- 2,414
- 1
- 23
- 43
2
votes
4 answers
Create a new embedded language using PHP
I am trying to develop an administration panel and I have a command line. When a user send a command like below, i need to recognize it using PHP.
My aim is simplifying tasks in the admin panel.
create page -attr1 90 -attr2 'page title';
or
…

kuzey beytar
- 3,076
- 6
- 37
- 46
2
votes
2 answers
Cannot reference IronPython Project from C# Project
I am trying to reference an IronPython project in a C# Project. They are both in the same solution. I am new to IronPython, so I was just wondering how the referencing works. Does an IronPython generate an assembly at all? All Im trying to do is a…

Morgan Herlocker
- 1,498
- 4
- 24
- 42
2
votes
1 answer
Py_DECREF segmentation fault
I am having trouble embedding Python in C++. I am using Mingw w64 gcc and 64 bit Python 2.7.11.
#include
int main(int argc, char *argv[]) {
Py_Initialize();
PyObject* pName = PyString_FromString("test");
Py_DECREF(pName);
…

thissideup
- 21
- 2
2
votes
2 answers
How to use embedded c within Shoes? (ruby-serialport)
Is it possible to use something like:
require 'serialport.o'
with Shoes? serialport.o is compiled c code as a ruby extension.
When I attempt to run the following code in shoes, I see no visible output to the screen and shoes crashes on OS X.
Thank…
john
2
votes
2 answers
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…

Michael Andersen
- 939
- 2
- 11
- 19
2
votes
2 answers
What is the purpose of embedding a scripting language into a programming language in a game engine?
I'm interesting in making games in my future, and I've heard that my favourite game's engine is made with c++, but its embedded with python. I have little experience with programming, but I greatly understand how object orientation works.

Cainan Crenshaw
- 31
- 3
2
votes
2 answers
Can I use zipimport to ship a embedded python?
Currently, I'm deploying a full python distribution (the original python 2.7 msi) with my app. Which is an embedded web server made with delphi.
Reading this, I wonder if is possible to embed the necessary python files with my app, to decrease load…

mamcx
- 15,916
- 26
- 101
- 189
2
votes
5 answers
Small RISC emulator
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…

Christopher Lightfoot
- 1,147
- 1
- 11
- 27
2
votes
1 answer
Overloading embedded Python functions using PyArg_ParseTuple
If I'm trying to overload an embedded Python function so that the second argument can be a long or an Object, is there a standard way to do it? Is this it?
What I'm trying now (names changed to protect the innocent):
bool UseLongVar2 = true;
if…

patros
- 7,719
- 3
- 28
- 37