[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Is there any sample code or library for using lua as a data parser?
- From: steve donovan <steve.j.donovan@...>
- Date: Wed, 26 Mar 2014 12:16:40 +0200
On Wed, Mar 26, 2014 at 11:00 AM, Journeyer J. Joh
> 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
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)