🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Free scripting languages with C++ syntax?

Started by
13 comments, last by stodge 21 years ago
Are there any scripting languages with C++ syntax that are free and be easily embedded into an application? Thanks
---------------------http://www.stodge.net
Advertisement
If you want C++ syntax, uhmm, why don''t you use C++?

---------------------------------------------------
laziness is the foundation of efficiency
retrospiral.net | llamas! | megatokyo | FreeBSD | gamedev.net | google
laziness is the foundation of efficiency | www.AdrianWalker.info | Adventures in Game Production | @zer0wolf - Twitter
I had this question a long time ago and noone had anything like I wanted, so I tried to make it myself. I got somewhere, but not as much as I wanted.

Are you hoping to use lots of functions and variables in the main program? If you only need a few, various scripting systems will allow you to register them so that you can use them in scripts. If you want to use heaps of them like I did, you end up trying to write a precompiler which parses your header files and creates the code to register them, which then gets compiled with your main program... whatever was on thinking when I tried to do that! Of course the advantage of using C++ syntax is you can use the same code to parse your headers as your scripts.

It may be that you can get away with hard-coding things you might have scripted, or use Lua which has different syntax. I''d offer you my scripting system, but it''s messy and incomplete.
quote: Original post by zer0wolf
If you want C++ syntax, uhmm, why don''t you use C++?

---------------------------------------------------
laziness is the foundation of efficiency
retrospiral.net | llamas! | megatokyo | FreeBSD | gamedev.net | google


Because that''s not a scripting language, which is what I asked for, and because I''m familiar with the syntax of C++ and so it would be easier to work with.

I''m just curious; I''ve already worked with Lua a bit but I was wondering what alternatives there were out there.



http://www.stodge.net - the powerhouse in personal commentary
---------------------http://www.stodge.net
Here I thought you used scripting languages to get away from C++....


AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.
--AnkhSVN - A Visual Studio .NET Addin for the Subversion version control system.[Project site] [IRC channel] [Blog]
Not at all.
---------------------http://www.stodge.net
Why don''t you just write a C++ interpreter then? You could simplify certain features.

I''d just use Lua.
quote: Original post by Anonymous Poster
Why don''t you just write a C++ interpreter then? You could simplify certain features.

I''d just use Lua.


I don''t know how.

---------------------http://www.stodge.net
use &#106avascript, its as close as you''re gonna get w/o a lot of work.
When I said something about using C++, I was implying what the first anonymous poster said, just use an interpeter for the C++ syntax.

From what I''ve seen out there Lua is pretty high up there on the list of good scripting languages, if not Lua then Python

---------------------------------------------------
laziness is the foundation of efficiency
retrospiral.net | llamas! | megatokyo | FreeBSD | gamedev.net | google
laziness is the foundation of efficiency | www.AdrianWalker.info | Adventures in Game Production | @zer0wolf - Twitter

This topic is closed to new replies.

Advertisement