c++ - Embedded scripting engine for DSL -


I am working on a project for which an embedded DSL is required to meet its expected requirements.

DSL user based event will be based here, a mockup of the desired syntax goes:

  User Defined-event -1 (// Event Body) User-defined-Event -2 {// event body}  

Perhaps, based on the events I find the most common language.

Therefore, after reading such other questions on SO, I have the best embeddable scripting engine (Ruby, Lua, Python, etc.) on C ++ (I work in QT) Allows DSL to be created.

In my project, I will test that the script properly defines the DSL syntax (at least one event defined) and give the user all the power of the built-in scripting engine and, if possible, QT.

This is not a requirement for embedded language to work with Qt. It can be done separately, but some integration will also be very good.

is out there. Lua can do something to the syntax shown above you; Specifically, {} indicates a table (associative array) in Lua, and if you are passing an anonymous table only in a function, then you do not need brackets:

  Lua 5.1.4 Copyright (c) 1994-2008 Lua.org, PUC-RIO & gt; Function LengthOfftable (T) Print (#t) End & gt; Lengthful ({"one", "b", "c"}) 3> Length Effective {"A", "B", "C"} 3  

Whether Laa actually is Best for your application, depending on your application , absolutely . Either way, Lua is very easy to embed in (IOMO) C or C ++.


Comments

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -