I mentioned earlier that I had a fun toy I wanted to pawn off on you guys. Here: http://www.plausible.org/nasl
Some will remember a few months back when the subject of scripting languages came up that I mentioned that someday I'd love to write my own language. Existing embeddable languages are either too limited or too large, and that I though there was a sweet spot for a small, simple language that still managed to support the "standard" list of features programmers have come to expect. In keeping with YASim's naming, let me present Nasl (yes, it's pronounced like you think it is). It does objects, functions (including functional programming), hash tables, vectors, strings and numbers; supports a syntax rather like Javascript; and does it all in less than 100k of ANSI C. I think it rocks*. Coming soon will be exception handling and runtime call stack inspection. To boot, the interpreter was designed to be threadsafe, although the garbage collector doesn't understand more than one context at the moment. * but then, that might be just because I've finally got to a point where I don't know about any actual bugs in it. Whether this is useful for FlightGear or not is up to you guys. I know that David has done some work with integrating PSL, which is a more limited language but probably more mature (and already available in plib). While it was intended to be small, Nasl may still seem like overkill to some. It is also frighteningly immature, which of course is why I'd *love* for you guys to play with it. I need to start working on other parts of my game first; until I have more code written, I won't have an environment in which to embed my embedded scripting language. Any work you guys do as guinea pigs before then is free testing for me. :) So anyway, take a look and tell me what you think. The quickest way to get a feel for the syntax is to read through the annotated sample file at http://www.plausible.org/nasl/sample.nas Andy -- Andrew J. Ross Beyond the Ordinary Plausibility Productions Sole Proprietor Beneath the Infinite Hillsboro, OR Experience... the Plausible? _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel