[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Underscore.lua 0.3
- From: Wesley Smith <wesley.hoke@...>
- Date: Wed, 9 Dec 2009 02:28:41 -0800
> That would be the idea (Juris in fact suggested a C API
> callback-driven design which could work nicely). Actually, the idea is
> not necessariily to make it easier to modify Lua, just to make those
> modifications pluggable. Something that in an ideal world you could
> Chaos is to be avoided, of course, mostly by good sense. Mostly
> thinking about DSL design in Lua actually.
For DSLs, I tend to prefer tweaking Lua within the limits of Lua or
using an LPEG grammar, both of which allow one to require() everything
that's needed. There have already been published full Lua and C
grammars based on LPEG from which any number of possible DSLs could be
derived as subsets or mutations of such grammars.