[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: config-file for a config-language: where the cat meet its tail ?!?
- From: steve donovan <steve.j.donovan@...>
- Date: Sat, 14 Jul 2012 18:47:41 +0200
On Sat, Jul 14, 2012 at 3:21 PM, Owen Shepherd <firstname.lastname@example.org> 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)