Re: Is there any sample code or library for using lua as a data parser?
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Is there any sample code or library for using lua as a data parser?
- From: steve donovan <steve.j.donovan@...>
- Date: 2014年3月26日 12:16:40 +0200
On Wed, Mar 26, 2014 at 11:00 AM, Journeyer J. Joh
<oosaprogrammer@gmail.com> wrote:
> I will try to use it.
Yes, it's designed to capture these simple patterns so that Lua can be
used without much knowledge of the API. I would be interested in your
experiments!
The example needs another bit of error checking - should look at the
value returned by llua_gets_v. If it is non-zero, it will be an error
string - e.g. if a person did not set a required field in the config.
(The ? allows for defaults; otherwise, it's an error)