Slashdot Mirror


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?

5 of 211 comments (clear)

  1. RTFLanguageDescription by jbuhler · · Score: 5

    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 :-).

  2. C interpreters by YoJ · · Score: 5
    People seem to be down on this language, so I'll go for the positive spin. After a couple minutes of browsing the manual, it looks like a cool language. It is the sort of thing you add to your program to give it a scripting language. The advantage of CSS is that it is easy to learn if you already know C (or Java). C isn't the most suitable language for scripting, and they didn't use C directly. Variables are typeless (I think), it has automatic memory allocation, etc. Of course, my favorite scripting language of all time is Lua (check it out).

    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.

  3. I am by volpe · · Score: 5
    And I tried to post a copy of the flamewar, which I had saved years ago. But the quality piece of software that is Slashdot replied thusly:
    Easy does it!

    This comment has been submitted already, 276100 hours , 12 minutes ago. No need to try again.

  4. Re:Not to nitpick... by sconeu · · Score: 5

    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.
  5. Not to nitpick... by crashnbur · · Score: 5
    ...but we have enough "CSS" already. Cascading Style Sheets seems to be widely accepted. Why name a programming language, or whatever this new CSS is, something that already exists?

    Or am I just blind to some bigger picture?