C Styled Script - C-like Scripting Language
Exomorph writes: " C Styled Scripting (CSS) has just been released for Linux! (Already available for Windows, and OS/2) You can use CSS like an interpreter (Like Perl) or as a scripting engine within your own applications. It follows the C syntax very closely and has now been released under the GNU General Public License." Is anyone using this?
Several of the complaints posted here about how awful C is as a scripting language indicate that people aren't actually reading the language description for CSS. Among other things:
:-).
* Variables must be declared but are untyped.
Like Tcl, everything appears to be a string.
* There are no pointers (though there are
call-by-ref parameters).
* There is no memory management, though there
is a way to dynamically change the size and
dimensions of an array object.
* There are some extensions, such as
exception handling and string concatenation
* There is no "goto" construct.
* There is a limited preprocessor facility
(#ifdef equivalents, but no macros).
Overall, it looks like a rather nice embedded scripting language, though it's not nearly as cool as embedded Scheme
Here's something I would like to see: an interpreter for C code that follows exactly what gcc would do. Then you could make a nice GUI environment for programming, where everything happens as you type it with no compile cycle. Then at the end you compile everything to get speed.
Will my computer explode if I write DeCSS in CSS?
General Relativity: Space-time tells matter where to go; Matter tells space-time what shape to be.
Or am I just blind to some bigger picture?