lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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
> require()
>
> 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.

wes