Hi, I want to simple scripting in my application, something like. IF window_title equals Firefox or window_title equals InternetExplorer open_kiosk() IF // nest if END_IF END_IF In this case I want to match the rule "window_title" and a parameter to that rule and upon seeing the text open_kiosk() I want to execute the real function. What would be the best boost libraries to use to achieve something like this? I am thinking of going with spirit and a combination of boost.regex or boost.xpressive. Thanks Shams
I don't know how sohphisticated you want to get, but definately take a look
at boost:spirit before making your final decision. Personally, with a
scripting language, I find it best to implement an existing one. Lua is very
straightforward and boost::python may be a way to go as well.
-Chris
On 8/12/06, Shams
Hi,
I want to simple scripting in my application, something like.
IF window_title equals Firefox or window_title equals InternetExplorer open_kiosk()
IF // nest if END_IF END_IF
In this case I want to match the rule "window_title" and a parameter to that rule and upon seeing the text open_kiosk() I want to execute the real function.
What would be the best boost libraries to use to achieve something like this?
I am thinking of going with spirit and a combination of boost.regex or boost.xpressive.
Thanks Shams
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
I evaluated a number of possibilities for this a while ago. If you are on windows and willing to go the COM/VBA route then http://www.codeproject.com/wtl/atlscripthost.asp gives a good intro. Otherwise I'd use boost::python. I found that embedding Lua in a c++ app was a little less well supported and documented, but luabind does much of the donkey work.
participants (3)
-
Mortoc
-
Shams
-
Simon Carter