[clug] Miniature Glue Language

Jack Kelly endgame.dos at gmail.com
Mon Jun 29 10:45:39 GMT 2009


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