[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lpeg error handling
- From: Ico <lua@...>
- Date: Wed, 22 Apr 2009 09:40:59 +0200
* On 2009-04-22 Fabien <email@example.com> wrote :
> Your language being a subset of Lua, can't you simply use the Lua compiler,
> in a severely restricted sandbox?
Yes, it's no coincedence that this is a subset of lua, because until now
I just do some trivial rewriting and feed the data to loadstring(). The
problem is that in future versions of the application the input for
these files can come from untrusted sources, and I'd like to create a
more robust solution to avoid problems caused by unexpected input like
> Alternatively, mlp (metalua's parser) produces decent error messages in
> response to incorrect entries.
Ok, thanks for the tip, I will look into this.