[clug] Miniature Glue Language

jm jeffm at ghostgun.com
Mon Jun 29 23:17:39 GMT 2009


Lua appears to be the language for this sort of thing. I've not used it 
myself so can only go on what I've read.  From memory it appears to have 
started as a configuration lanuage and grown from there. Hence, it's 
easy to embed in an app or write modules for. Finger's crossed that 
should mean it's easier to port.

This may be of interest:

http://lua-users.org/lists/lua-l/2007-05/msg00355.html


What every you do keep us posted it will be interesting to see how you fair.

Jeff.

Jack Kelly wrote:
> On Mon, Jun 29, 2009 at 8:26 PM, Paul Matthews<plm at netspace.net.au> wrote:
>   
>> But I do have a C compiler.
>>
>> What I am looking for is a very small language I can port. Preferably:
>> implemented in very few .c files. Not with lisp syntax (too unfamiliar
>> for our users). Able to call into C code, and able to call back out
>> (callbacks). Having a array, list, assoc array types.
>>     
>
> I think (from my limited experience) that Lua sounds like what you're
> looking for. The core is written almost entirely in ANSI C and I
> remember reading about a group that even removed the parser (but kept
> the bytecode loader).
>
> The syntax is pretty friendly, and tables serve as dynamically sized
> arrays and associative arrays.
>
> Just watch out for the 1-based indexing.
>
> -- Jack
>   


More information about the linux mailing list