[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Short function definition syntax; thoughts on Lua (was Re: [ANN] GSL Shell new beta release...)
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 5 Dec 2009 12:31:17 +0200
On Sat, Dec 5, 2009 at 12:03 PM, Peter Sommerfeld <lua@rubrica.at> wrote:
> That all raises the question whether Lua should support
> some minimal form of domain specific language, probably
> via including token filter into the std. distribution.
> That would reduce the need to build a complete language
> on top of Lua.
That makes sense, because doing your own parser is not easy. You end
up with an incomplete experience for your users, and have incremented
the global count of programming languages. Far better to take stock
Lua and add just a little bit of domain-specific spice.
How something like 'domain' works is another question ... currently
the token filter patch just looks for the Lua global 'FILTER'. There
is possibly a performance hit to having the patch in mainstream Lua,
because for every token read it needs to check for the existence of
this global. However, I haven't done tests so it's hard to say
whether it makes much difference.
steve d.