![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Mar 2007
Posts: 24
Rep Power: 0
![]() |
advanced user output
Hello
I want to allow user to use advanced output feature with my application. In other words I want to have some simple scripting language inside c++ application so that user could call c++ functions from this simple scripting language. Is there anything similar available? I know for boost python, but to embed python interpreter in c++ makes binary for about 1mb bigger. I want to keep my exe as smallest as possible. User should be able to do something like this (for instance): %c = random(2,5); %b = "some text"; output = "this is" . %b . "... some random number: " . %c; And when my c++ aplication would parse this script, it would make the output string: "this is some text... some random number: 3" Thanks for help |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
If you want to embed a small scripting language take a look a Lua, Squirrel, or AngelScript. You should be able to accomplish something simple with those languages.
__________________
Robotics @ Maryland AUV Team - Software Lead |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Mar 2007
Posts: 24
Rep Power: 0
![]() |
I hope there will be something in boost soon.
|
|
|
|
|
|
#4 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
Boost.Python is great but it is not light weight, don't wait for Boost. All the libraries I listed only require a couple of lines of code to integrate in the way you want. Why don't you give something like Squirrel a try.
__________________
Robotics @ Maryland AUV Team - Software Lead |
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3
![]() |
lua is a good choice imho. sorry to slightly go off course a bit, but would you happen to recommend any good IDE's for lua, Game_Ender ?
|
|
|
|
|
|
#6 |
|
Professional Programmer
Join Date: May 2006
Location: Maryland, USA
Posts: 306
Rep Power: 3
![]() |
Can't do that, I have not used any of the light weight alternatives listed above. I have only done some research on them and seen examples of there integration in other projects (Code::Blocks for example). I personally use Boost.Python (its what Python-Ogre uses). I do know that WGE (a C++ and Squirrel game engine) has integrated squirrel debugging.
__________________
Robotics @ Maryland AUV Team - Software Lead |
|
|
|
|
|
#7 |
|
Hobbyist Programmer
Join Date: Jan 2006
Location: UK
Posts: 215
Rep Power: 3
![]() |
Aye same man. I'm writing an agent based modelling toolset for my final project, and was hoping to create custom states to be codable in lua script.... but alas times against me for that functionality.
still, its something i would like to implement after when i got some more time. I had a bash installing a couple of IDE's but had no joy what so ever. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| FiveDigit + RandomeNumber Game. | TecBrain | Java | 0 | Nov 18th, 2005 2:53 PM |
| User Input for Number Format | ericelysia1 | Java | 0 | Jul 21st, 2005 3:41 PM |
| Instant Messaging App Help | AusTex | C | 0 | Apr 27th, 2005 4:52 PM |
| Loading and Destroying web user controls into a panel | see07 | C# | 0 | Feb 2nd, 2005 12:38 PM |
| Show web user control hidden | see07 | C# | 1 | Feb 2nd, 2005 10:35 AM |