Scripting language C++ syntax

Discussion about everything. New games, 3d math, development tips...
Post Reply
Danila Master
Posts: 9
Joined: Tue Jan 30, 2007 12:24 pm
Location: Russia, Pushchino

Scripting language C++ syntax

Post by Danila Master »

Squirrel is a high level imperative/OO programming language, designed to be a powerful scripting tool that fits in the size, memory bandwidth, and real-time requirements of applications like games.

Squirrel is inspired by languages like Python,Javascript and expecially Lua(The API is very similar and the table code is based on the Lua one)

squirrel's syntax is similar to C/C++/Java etc... but the language has a very dynamic nature like python/Lua etc...

LuaComparedToSquirrel

Although Squirrel offers a wide range of features like:
Open Source zlib/libpng licence
dynamic typing
delegation
classes & inheritance
higher order functions
generators
cooperative threads(coroutines)
tail recursion
exception handling
automatic memory management (CPU bursts free; mixed approach ref counting/GC)
weak references
both compiler and virtual machine fit together in about 6k lines of C++ code.
optional 16bits characters strings
compiles on both 32 and 64 bits architectures

The current stable release is 2.1.1
The project has been compiled and run on Windows(Windows XP/2000 on Intel x86 32 and 64 bits) and Linux(Slackware 9.0 on Intel x86 and Fedora 4 Intel x86 64bits).
Has been tested with the following compilers:

MS Visual C++ 6.0,7.0,7.1 and 8.0(32 and 64 bits)
MinGW gcc 3.2 (mingw special 20020817-1)
Cygwin gcc 3.2
Linux gcc 3.2.3 Linux gcc 4.0 (64 bits)

Squirrel is known to run also on MacOS X, GameCube, PSP and XBOX
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

Why did you post this in Beginner's Help?

I've tried Squirrel once and I didn't like it. The syntax is NOT similar to C/C++ like the website says. I think AngelScript is a much better choice if you want a C/C++ syntax.

And the comparison you linked to is ridiculous. It is obviously biased and clearly the author of that post made it to promote Squirrel rather than give good advice.
Danila Master
Posts: 9
Joined: Tue Jan 30, 2007 12:24 pm
Location: Russia, Pushchino

Post by Danila Master »

I have sent to the post because I wanted to hear your assessment and advice in select better script engine with C/C++ syntax. I is beginner.

Where can I find AngelScript ?
Last edited by Danila Master on Wed Jan 31, 2007 11:51 am, edited 1 time in total.
Klasker
Posts: 230
Joined: Thu May 20, 2004 8:53 am
Contact:

Post by Klasker »

AngelScript can be found here. But if you are a beginner then implementing a scripting language is a going to be hard. Maybe you should try something easier to begin with.
Danila Master
Posts: 9
Joined: Tue Jan 30, 2007 12:24 pm
Location: Russia, Pushchino

Post by Danila Master »

I is not beginner in programming.
I know Pascal, Delphi, Assembler (Fasm, Masm). Now i learn C++.
I is beginner in game developing
I want to small but powerfull scripting engine
Post Reply