lua-users home
lua-l archive

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


On Sat, Jul 14, 2012 at 3:21 PM, Owen Shepherd <owen.shepherd@e43.eu> wrote:
> getmetatable isn't included in the environment

Exactly.  Peter does make a good point about 'while' of course.

The idea is still to allow if-statements, but nothing that can run
away or cause damage.

The cost is having to do a lexical scan to exclude keywords - an
LPeg-based solution would be more efficient. (You do want to allow
people to use the word 'function' in strings ;) )

(in fact, I'm thinking of making the lexer optionally use LPeg if available)

steve d.